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

german umlauts - how to cope with

Thread Next
From:
Georg Koss
Date:
December 16, 2002 14:21
Subject:
german umlauts - how to cope with
Message ID:
20021216221715.GA2992@ursa.orbit.net
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 ;)

-- 

M.f.G.

Georg Koss

mailto: g.koss@nextra.at


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About