NYCPHP Meetup

NYPHP.org

[nycphp-talk] preg_match and extended ASCII

Jeff Siegel jsiegel1 at optonline.net
Mon Dec 22 12:59:45 EST 2003


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





More information about the talk mailing list