Vyacheslav Karamov пишет:
Mr. Shawn H. Corey пишет:
On Thu, 2008-10-02 at 17:09 +0300, Vyacheslav Karamov wrote:
Vyacheslav Karamov пишет:
Hi All!

I making regular expression for mathching authors
in some text (English, French or German).
Which character class lower-case letters containing latin letters like "ø"?

For example "Colding-Jørgensen"

Sorry, I need an upper-case too.


POSIX has a class of characters that respond to locale.

use POSIX;
/[[:alpha:]]+/;

See:
perldoc POSIX
perldoc perllocale
perldoc locale


use POSIX  + [:alpha:] doesn't work

Solution:
just add "use utf8;" (without quotes)

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to