Splitting string into dictionary
Devan L
devlai at gmail.com
Fri Jul 1 01:29:46 EDT 2005
Previous message (by thread):
Splitting string into dictionary
Next message (by thread):
Splitting string into dictionary
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
One line solution. dict(re.findall(r"'(.+?)' \| '(.+?)'(?:\s\||$)",yourtexthere))
Previous message (by thread):
Splitting string into dictionary
Next message (by thread):
Splitting string into dictionary
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-list mailing list