regex search with a space as the fist character

Daniel Santos daniel.dlds at gmail.com
Thu Sep 17 03:27:27 CEST 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