data regex match

Gary Wessle phddas at yahoo.com
Tue May 2 23:06:11 CEST 2006


Hi

I am having an issue with this match

tx = "now 04/30/2006 then"
data = re.compile('(\d{2})/\1/\1\1', re.IGNORECASE)
d = data.search(tx)
print d

Nono
I was expecting 04/30/2006, what went wrong?

thanks



More information about the Python-list mailing list