I'm not at all sure this is a good or robust solution however, and I'm looking forward to the other replies.s/ ( (?: # non capturing parens ^|%> # start of string or %> ) .* ) ' (.* (?:<%|$) ) /$1 SOMESTRING $2/gsx # add s and x modifiers
In reply to Re: silly regex question
by Anonymous Monk
in thread silly regex question
by batkins
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |