Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Japanese regex question




On Fri, 26 Aug 2005 11:36:35 +0900 (JST)
Tod McQuillin <devin@example.com> wrote:

> Which means that if the encoding happens to include upper/lowercase 
> letters as part of the string when interpreted as bytewise ascii ... you 
> lose if 'i' was specified.
> 

I was interested enough to knock this up and it confirm's Tod.

#!/usr/bin/perl

$nampa= "\x25\x6A\x25\x73\x25\x51";

if ($nampa =~ /\x25\x4A\x25\x73\x25\x51/i)
{
         print "you've been nampaed\n";
}
else
{
         print "you're ugly \n";
}

if ($nampa =~ /\x25\x4A\x25\x73\x25\x51/)
{
         print "you've been nampaed\n";
}
else
{
         print "you're ugly \n";
}




-- 
Brett Robson 
Systems Administrator
GOL, Tokyo. 
http://www.gol.com
Phone: 03-3239-6856    International: +81-3-3239-6856



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links