[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: U-umlaut and two-letter combination
- From: Florian Berger <fberger@...>
- Date: Sun, 18 Sep 2005 21:59:35 +0300 (EEST)
I have a simple question about string searching. Let's say that I want to
know if city "Muenchen" is found in text. If I don't know the source of
text the city might be written like "Muenchen" or "München". I would like
to make my search support both versions with single search pattern.
Something like: string.find(txt, "m[ü or ue]nchen"). The problem is that
the alternatives don't have the same length. Otherwise they could be put
to a set. Is there any simple solution to this problem?