| Posted by Daniel Tryba on 06/17/05 02:18 
R <ruthless@poczta.onet.pl> wrote:> if (preg_match('/^[a-z]{2,10}$/', 'aezztest'))
 >                                              ^^^^ wow google did some
 > magic here ;-)
 >                                                     polish characters
 > meant to be here (in place of 'aezztest'
 
 Just in case you didn't know: Google's G2 thingy is extremly borken.
 
 > what ever ;-) the problem is that this regex isn't working...
 
 That's because [a-z] matches is the equivalanet to [\x61-\x7a]
 
 If you want to match lowercase extended characters in iso8859-2
 encoding, you need to generate a character class like:
 [\xb1\xb3\xb9-\xbc]
 (and lots more I guess).
  Navigation: [Reply to this message] |