develooper Front page | perl.beginners | Postings from December 2002

german umlauts - how to cope with

Thread Next
Georg Koss
December 16, 2002 14:21
german umlauts - how to cope with
Message ID:
A friendly hello to all of you!

As I'm posting first time here, I'd like to introduce myself as a
bloody perl-newbie ;(

My problem: I tried to use a regexp in a word counting program and
encountered that any word with a 'german umlaut' is ignored when using
the following m// :

    $word =~ m/^[a-zA-Z]+([-']+|([-'][a-zA-Z]+))*$/;

How do I have to modify the pattern [a-zA-Z] to include aediaresis,
oediaresis and uediaresis?

TIA & have a nice day ;)



Georg Koss


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About