Related articles |
---|
requiring balanced parens in a regexp? petermichaux@gmail.com (Peter Michaux) (2006-11-10) |
Re: requiring balanced parens in a regexp? petermichaux@gmail.com (Peter Michaux) (2006-11-10) |
Re: requiring balanced parens in a regexp? mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2006-11-10) |
Re: requiring balanced parens in a regexp? martin@gkc.org.uk (Martin Ward) (2006-11-10) |
Re: requiring balanced parens in a regexp? haberg@math.su.se (2006-11-10) |
Re: requiring balanced parens in a regexp? alexc@TheWorld.com (Alex Colvin) (2006-11-10) |
Re: requiring balanced parens in a regexp? cfc@shell01.TheWorld.com (Chris F Clark) (2006-11-10) |
From: | Martin Ward <martin@gkc.org.uk> |
Newsgroups: | comp.compilers |
Date: | 10 Nov 2006 13:19:10 -0500 |
Organization: | Compilers Central |
References: | 06-11-039 |
Keywords: | lex |
Posted-Date: | 10 Nov 2006 13:19:10 EST |
On Friday 10 Nov 2006 05:17, John wrote:
> replace each ([^)]+) by a space until there aren't any left
I think you mean "replace each ([^()]*) by a space"
Otherwise you miss "()" and match on "(a (b (c)" instead of just "(c)".
--
Martin
martin@gkc.org.uk http://www.cse.dmu.ac.uk/~mward/
[Um, right. I never said I was great at debugging. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.