in reply to Re: Regex Substitutionin thread Regex Substitution
s/(-)?(\d+)/ $1 ? "S" : $2 ? "L" : "Q" /e; [download]
Skips the numeric conversion part. :-)