in reply to Re: Re: Re: capturing matching parenthesis
in thread capturing matching parenthesis
The solutions quickly become ugly, complex, and error-prone, which is why the tried and proven module Text::Balanced is a good idea.
Update: Ok, MUBA's approach handles the escaped-backslash case too.
My point is that if the idea of Perl is to make easy things simple and difficult things possible, I'd favor an approach that takes it a step further by making a difficult thing easy for me.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: capturing matching parenthesis
by muba (Priest) on Apr 15, 2004 at 21:25 UTC |