problem with re.rearch

Alex new_name at mit.edu
Mon Jul 30 22:14:50 EDT 2001


>>> import re
>>> s = 'abcd'
>>> a = re.compile(s)
>>> b = a.search('a')
>>> print b
None
>>> c = a.search('foo abcd')
>>> print c
<SRE_Match object at 0x8114a28>
>>> 

HTH
Alex.



More information about the Python-list mailing list