in reply to Re: Orthography Translation using Regex
in thread Orthography Translation using Regex

When doing join '|', for a regex, always sort (descending) by string length, to insure you match e.g. 'sh' before 's'.

And I suspect you want a map quotemeta in there as well. (Update: quotemeta isn't needed here; I misremembered the question as having special characters.)

Replies are listed 'Best First'.
Re: Re: Re: Orthography Translation using Regex
by Roger (Parson) on Feb 29, 2004 at 21:04 UTC
    I am just giving an idea on how this could be done, not on the complete correctness of the regex though. :-)