"+" does not match?

Thomas Thiele thiele at muc.das-werk.de
Wed Jun 28 15:52:26 EDT 2000


>>> import regex 

>>> s1 = "c++test/"
>>> s2 = "c++test/Derivetest.c++"
>>> regex.match(s1,s2)
-1

but if I substitude the "+" I'll get the correct behaviour.

>>> s1 = "c11test/"
>>> s2 = "c11test/Derivetest.c++"
>>> regex.match(s1,s2)
8

Why? Can anybody explain me that?



More information about the Python-list mailing list