Re: Regex for nested {}
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Regex for nested {}

From: <skip@pobox.com>
Date: Fri Jul 29 2005 - 05:08:58 CEST

    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
Received on Thu Sep 29 17:13:34 2005