[OSM-dev] perl and special utf-8 characters

Gary68 gary at gary68.de
Fri Mar 11 16:56:28 GMT 2011

i wouldn't know how to do it with regexes.

ok. let's put it this way. i have a POSITIVE list of allowed chars
(inkl. utf8 2byte ones) and i have a string.

i want to eliminate all chars in the string that are not in the POSITIVE

any idea?


On Fri, 2011-03-11 at 17:33 +0100, M∡rtin Koppenhoefer wrote:
> 2011/3/11 Gary68 <gary at gary68.de>:
> > i want to find out if certain characters (german umlaute) are contained
> > in a string that i work char by char.
> Hi Gerhard,
> I am almost totally ignorant in programming but I guess that if you
> don't need the parsing character by character for another operation
> there will already be a general solution for this problem in perl
> (which might be faster). Recently I did something similar in Postgres
> and by reading the manual I found a function called "regex replace"
> (or similar). I suggest you search your docu for this term (or search
> for "regular expression") and I am 99% sure you will get the answer.
> cheers,
> Martin

More information about the dev mailing list