re.search
Rares Vernica
rvernica at ics.uci.edu
Mon Mar 6 01:31:41 EST 2006
Hi,
Isn't the following code supposed to return ('1994')?
>>> re.search('(\d{4})?', '4 1994').groups()
(None,)
Thanks,
Ray
More information about the Python-list
mailing list