re question - finiding matching ()

Paul Rubin http
Sun Jan 18 18:08:03 EST 2004


miki.tebeka at zoran.com (Miki Tebeka) writes:
> I'd like to find all of the sub strings in the form "add(.*)"
> The catch is that I might have () in the string (e.g. "add((2 * 2), 100)"), 

You can't do that with classic regexps.  You need a parser, not a scanner.



More information about the Python-list mailing list