($ext,$rem,$pre) =extract_bracketed($string,'()','[^()]+');
Seems that /.*?/ also matches parens, now doesn't it?
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re: Text::Balanced question
by shmem
in thread Text::Balanced question
by embirath
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |