in reply to silly regex question
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
|
|---|