NYCPHP Meetup

NYPHP.org

[nycphp-talk] preg_match and extended ASCII

Freedman, Tom S. Thomas.Freedman at ubs.com
Mon Dec 22 13:26:13 EST 2003


Though it doesn't really answer how to check for them, you might be better
off using a negative search pattern... looks like there's more characters
you DON'T want than things you DO want, anyway.

-----Original Message-----
From: Jeff Siegel [mailto:jsiegel1 at optonline.net] 
Sent: Monday, December 22, 2003 1:00 PM
To: NYPHP Talk
Subject: [nycphp-talk] preg_match and extended ASCII

I'm using preg_match to verify form data. I'm not sure how to handle 
accented characters, e.g., an "e" with an accent as in Mazda Protegé. 
Obviously the following pattern ( '/^[a-z0-9()\/\'"|&,. -]{2,55}$/i' ) 
doesn't cut it. I had tried [[:alnum:]] but that didn't do it either.

Jeff Siegel


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


Please do not transmit orders or instructions regarding a UBS account by
email. The information provided in this email or any attachments is not an
official transaction confirmation or account statement. For your protection,
do not include account numbers, Social Security numbers, credit card
numbers, passwords or other non-public information in your email. Because
the information contained in this message may be privileged, confidential,
proprietary or otherwise protected from disclosure, please notify us
immediately by replying to this message and deleting it from your computer
if you have received this communication in error.  Thank you.

UBS Financial Services Inc.
UBS International Inc.




More information about the talk mailing list