syntax incorrect with regex

sam sam.wun at authtec.com
Fri Mar 18 08:57:15 EST 2005


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



More information about the Python-list mailing list