Regex for nested {}

skip at pobox.com skip at pobox.com
Thu Jul 28 23:08:58 EDT 2005


    Chris> I have a problem matching nested levels of {} ...

Regular expressions can't count, so you'd be better off sticking with
regexes to tokenize the source, then use a real parser to parse the tokens
it produces.

Skip



More information about the Python-list mailing list