whats wrong with my reg expression ?

Gert Cuykens gert.cuykens at gmail.com
Mon Jan 15 23:41:03 CET 2007


 rex2=re.compile('^"(?P<value>[^]*)"$',re.M)

  File "/usr/lib/python2.5/re.py", line 180, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.5/re.py", line 233, in _compile
    raise error, v # invalid expression
sre_constants.error: unexpected end of regular expression

?



More information about the Python-list mailing list