[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: U-umlaut and two-letter combination
- From: Asko Kauppi <askok@...>
- Date: Sun, 18 Sep 2005 22:53:53 +0300
I know that problem, and afik string.find() does not offer a means to
it.
However, how about string.gsub(txt,"ue","ü") first, and then do the
string.find?
-ak
Florian Berger kirjoitti 18.9.2005 kello 21.59:
Hi.
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?
Florian