in reply to Re: Regular Expression Builder
in thread Regular Expression Builder

Clever, but add the step (actually, merge it with the A9 -> metachar translation):
s%((?:\\w)+)%'\w{'. length($1)/2 .'}'%eg; ...

--
perl -pew "s/\b;([mnst])/'$1/g"