Functions for transliteration using regular expressions.