regulars expressions ?

Devan L devlai at gmail.com
Tue Jun 28 15:20:45 EDT 2005


Oh, oops, sorry, that code doesn't respect the quotes.
Use this code:
re.findall(r'(".+?"|\S+)(?:,|$)', yourtexthere)




More information about the Python-list mailing list