s/<%(?:[^%]+|%(?!>))*%>/<%$new%>/ [download]
Abigail
In reply to Re: A NOT in regular expressions by Abigail-II in thread A NOT in regular expressions by Anonymous Monk