Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: international case insensitive searched with Perl

by GrandFather (Sage)
on Oct 04, 2011 at 06:02 UTC ( #929446=note: print w/ replies, xml ) Need Help??


in reply to Re: international case insensitive searched with Perl
in thread international case insensitive searched with Perl

In fact it works with 5.10 just using:

use strict; use warnings; use utf8; my $string = 'LÉGER'; print $string =~ /léger/i ? 'matched' : 'no match';

Prints:

matched
True laziness is hard work


Comment on Re^2: international case insensitive searched with Perl
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929446]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (20)
As of 2015-07-28 14:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (256 votes), past polls