in reply to Re^2: strip out anything inbetween brackets
in thread strip out anything inbetween brackets
Try your code against $_="woaaa (nested (parens)))".
Update: Well, that's not fair of me, because the parens are not balanced; but it does show that the general problem has wrinkles. Judging by follow-up posts it looks like the OP's problem is simple enough to be dealt with a plain regexp. Text::Balanced shines when you have to process large chunks of text (e.g. source code) with balanced expressions.
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: strip out anything inbetween brackets
by deibyz (Hermit) on Apr 05, 2005 at 15:43 UTC | |
by tlm (Prior) on Apr 05, 2005 at 15:57 UTC |