Re: syntax incorrect with regex

2005-03-18 Thread Swaroop C H
On Fri, 18 Mar 2005 21:57:15 +0800, sam <[EMAIL PROTECTED]> wrote: > Hi, > > What is the correct syntax of declaring a regex syntax in Python 2.3? > I got the following error: > > # python2.3 test.py >File "test.py", line 10 > macros_parser = re.compile (r""" (\s+)=\"(\s+)\"$ """,re.VERB

Re: syntax incorrect with regex

2005-03-18 Thread Fredrik Lundh
"sam" wrote: > What is the correct syntax of declaring a regex syntax in Python 2.3? > I got the following error: > > # python2.3 test.py > File "test.py", line 10 > macros_parser = re.compile (r""" (\s+)=\"(\s+)\"$ """,re.VERBOS) > ^ > SyntaxError: invalid syntax compare and contrast:

Re: syntax incorrect with regex

2005-03-18 Thread TZOTZIOY
On Fri, 18 Mar 2005 21:57:15 +0800, rumours say that sam <[EMAIL PROTECTED]> might have written: > macros_parser = re.compile (r""" (\s+)=\"(\s+)\"$ """,re.VERBOS) > ^ >SyntaxError: invalid syntax Like Diez already said, your problem is probably mixing of tabs with spaces or bad indentati

Re: syntax incorrect with regex

2005-03-18 Thread Diez B. Roggisch
sam wrote: > Hi, > > What is the correct syntax of declaring a regex syntax in Python 2.3? > I got the following error: > > # python2.3 test.py >File "test.py", line 10 > macros_parser = re.compile (r""" (\s+)=\"(\s+)\"$ """,re.VERBOS) > ^ > SyntaxError: invalid syntax No problem

syntax incorrect with regex

2005-03-18 Thread sam
Hi, What is the correct syntax of declaring a regex syntax in Python 2.3? I got the following error: # python2.3 test.py File "test.py", line 10 macros_parser = re.compile (r""" (\s+)=\"(\s+)\"$ """,re.VERBOS) ^ SyntaxError: invalid syntax Thanks sam -- http://mail.python.org/mailman/list