spaces in re.compile()

AndrewN andrew.nelis at gmail.com
Mon Mar 21 17:16:20 CET 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