perl -e '$x=qw(&apm;gt;lt;amp;);$x=~s/;(.)/;&$1/g;print $x,"\n";' [download]
In reply to Re: Question for regex experts by Sandy in thread Question for regex experts by evgen-i