spaces in re.compile()

AndrewN andrew.nelis at gmail.com
Mon Mar 21 11:16:20 EST 2005


>>> d = re.compile(' \d{3}\.\d{3}\.\d{3} ')
>>> d.findall(' 123.345.678 ')
[' 123.345.678 ']

Works for me.




More information about the Python-list mailing list