regex search with a space as the fist character

Daniel Santos daniel.dlds at gmail.com
Wed Sep 16 21:27:27 EDT 2009


Hello,

>>> print re.compile('u ').search(" u box2", 1)
<_sre.SRE_Match object at 0x7ff1d918>
>>> print re.compile(' u ').search(" u box2", 1)
None


Why ?



More information about the Python-list mailing list