in reply to Re: regex for nested "<"/">'
in thread regex for nested "<"/">'
$re = qr{ ( (?: (?&OPEN) (?: (?>(?:.*?(?=(?&OPEN)|(?&CLOSE)))) | (?-1) )* (?&CLOSE) ) ) (?(DEFINE) (?<OPEN>\bBEGIN\b) (?<CLOSE>\bEND\b) )}x;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: regex for nested "<"/">'
by clueless newbie (Curate) on Feb 12, 2020 at 22:20 UTC |