in reply to multiple substitutions

If I understand you correctly, try making that if a while.

UPDATE: Doh! ++ For IndyZ and RMGir. There I go ignoring details again...

--
perl -pe "s/\b;([mnst])/'\1/mg"