in reply to 2 problems withs regexes and letters like é

I don't know if this specifically addresses your problem, but check out perldoc perllocale for information on POSIX locale support in perl. I'm pretty sure it covers on how the locale setting interacts with character classes and what not.

Replies are listed 'Best First'.
Re: Re: 2 problems withs regexes and letters like é
by Sihal (Pilgrim) on Jan 17, 2003 at 09:09 UTC
    It seems (I'm not through reading the manpage yet but I start to have a good idea of what is going on) that this will solve my problem. Thanks a lot.
    # Solution for matching "é" use locale ; my $test = "é é é é " ; $test =~ /[[:alpha:]]/ and print "YEAH" ; #OR $test =~ /[\w]/ and print "Thanx" ;
    Simple for some, hard for me since I didn't even knew of localization.

    Thank you Fletch! ( and diotalevi and jdporter who answered in the CB. )
Re: Re: 2 problems withs regexes and letters like é
by Sihal (Pilgrim) on Jan 16, 2003 at 18:51 UTC
    Ill have a look thanx. Not coming from a computer science, I wasn't aware of locale POSIX