in reply to Re: RegEx: How to negate more than one character?
in thread RegEx: How to negate more than one character?
What I am trying to do is match outermost <% ... %> "brackets" while also handling possible internal pairs of my own unique bracketing system:
$re = qr{\<\%(?:(?>[^(\<\%|\%\>)]+)|(??{$re}))\%\>};
I guess what I am looking for is a replacement to the [^(\<\%|\%\>)]+ part above (unless that is correct).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: RegEx: How to negate more than one character?
by jettero (Monsignor) on Mar 25, 2007 at 23:34 UTC |