pattern match

Gabor Nagy linux42 at
Wed Apr 16 16:53:11 CEST 2003

I have a string, like '(FOO(1) BAR("2"))'

I'd like to have a { 'FOO':1, 'BAR':'2' }

Is there an easy way to do this, or do I have to write parsing, maybe use
regexps, or something like that?


More information about the Python-list mailing list