[nycphp-talk] Regular Expressions & Foreign Characters
jon baer
jonbaer at jonbaer.net
Wed Sep 17 10:05:37 EDT 2003
from what i recall you need to play around with multibyte/unicode functions
+ it needs to be compiled in (--enable-mbstring=all):
http://us3.php.net/manual/en/ref.mbstring.php
http://us3.php.net/manual/en/function.mb-ereg.php
- jon
----- Original Message -----
From: "Jeff" <jsiegel1 at optonline.net>
To: "'NYPHP Talk'" <talk at lists.nyphp.org>
Sent: Wednesday, September 17, 2003 10:58 AM
Subject: [nycphp-talk] Regular Expressions & Foreign Characters
If I understand correctly, a regular expression like this: ^[a-z0-9\',.
-]{1,35}$/I will not allow foreign characters, e.g., Ë, because it is
not part of the regular ASCII set of characters but part of the extended
set. So...what's a kid to do?
Jeff Siegel
_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk
More information about the talk
mailing list