regular expression for nested matching braces

Henrik Motakef henrik.motakef at web.de
Sun Mar 3 07:28:20 EST 2002


"Paul M" <p.magwene at snet.net> writes:

> Is it possible to create a regular expression for searching for the
> outermost matching braces in a string in which there may be nested braces?

Not really. However, there is a Python wrapper for sgrep (structured
grep) that could be useful.

Sorry, I don't have a link. Try Google or Freshmeat.

hth
Henrik



More information about the Python-list mailing list