Commit d203d2a2 authored by Chris McDonough's avatar Chris McDonough

raw-ify all substrings to tagre regex.

parent ef0434a1
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file. # attributions are listed in the accompanying credits file.
# #
############################################################################## ##############################################################################
"$Id: DT_String.py,v 1.42 2001/04/27 20:59:34 shane Exp $" "$Id: DT_String.py,v 1.43 2001/04/28 07:20:28 chrism Exp $"
from string import split, strip from string import split, strip
import thread,re import thread,re
...@@ -156,12 +156,12 @@ class String: ...@@ -156,12 +156,12 @@ class String:
def tagre(self): def tagre(self):
return re.compile( return re.compile(
r'%(' # beginning r'%(' # beginning
'(?P<name>[a-zA-Z0-9_/.-]+)' # tag name r'(?P<name>[a-zA-Z0-9_/.-]+)' # tag name
'(' r'('
'[\000- ]+' # space after tag name r'[\000- ]+' # space after tag name
'(?P<args>([^)"]+("[^"]*")?)*)' # arguments r'(?P<args>([^)"]+("[^"]*")?)*)' # arguments
')?' r')?'
')(?P<fmt>[0-9]*[.]?[0-9]*[a-z]|[]![])' # end r')(?P<fmt>[0-9]*[.]?[0-9]*[a-z]|[]![])' # end
, re.I) , re.I)
_parseTag__roles__=() _parseTag__roles__=()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment