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
"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:
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
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
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