in reply to searching in array

See grep.

--
perl -p -e "s/(?:\w);([st])/'\$1/mg"