in reply to Re: Regular Expression Builderin thread Regular Expression Builder
s%((?:\\w)+)%'\w{'. length($1)/2 .'}'%eg; ... [download]
-- perl -pew "s/\b;([mnst])/'$1/g"