Python regular expression

W

Wehrdamned

Hi,

As I understand it, python uses a pcre engine to work with regular
expression.
My question is, then, why expressions like :
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/sre.py", line 180, in compile
return _compile(pattern, flags)
File "/usr/lib/python2.4/sre.py", line 227, in _compile
raise error, v # invalid expression
sre_constants.error: unexpected end of pattern

don't work? They are ok in perl...

Thanks in advance.
 
R

Roberto Bonvallet

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top