in reply to Determining if you have balanced delimiters
What you need is a dot that doesn't match any of your other items of interest. Perhaps (untested):
$middle = "(?:(?!$left|$right|$escape$left|$escape$right).)";
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 2: Determining if you have balanced delimiters
by tilly (Archbishop) on Nov 21, 2000 at 17:58 UTC | |
by merlyn (Sage) on Nov 21, 2000 at 18:01 UTC | |
by tilly (Archbishop) on Nov 21, 2000 at 18:09 UTC |