Splitting string into dictionary

Devan L devlai at gmail.com
Fri Jul 1 01:29:46 EDT 2005


One line solution.
dict(re.findall(r"'(.+?)' \| '(.+?)'(?:\s\||$)",yourtexthere))




More information about the Python-list mailing list