NYCPHP Meetup

NYPHP.org

[nycphp-talk] Regular Expressions & Foreign Characters

Jeff jsiegel1 at optonline.net
Wed Sep 17 12:04:55 EDT 2003


Oy...I hope I don't have to recompile.

Jeff

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of jon baer
Sent: Wednesday, September 17, 2003 9:06 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Regular Expressions & Foreign Characters


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


_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk




More information about the talk mailing list