in reply to international case insensitive searched with Perl
#!perl use 5.014; use warnings; my $string = 'LÉGER'; print $string =~ /léger/i ? 'matched' : 'no match';
Prints 'matched' for me.
... of course if you're using an older version of perl, you need to put a little more work into enforcing a match under Unicode rules.
TJD
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: international case insensitive searched with Perl
by Anonymous Monk on Oct 03, 2011 at 20:05 UTC | |
|
Re^2: international case insensitive searched with Perl
by chrestomanci (Priest) on Oct 04, 2011 at 09:13 UTC | |
|
Re^2: international case insensitive searched with Perl
by mwhiting (Beadle) on Oct 04, 2011 at 15:57 UTC | |
by Anonymous Monk on Oct 06, 2011 at 13:45 UTC |