[PHP] Re: high-bit characters

2007-06-09 Thread Al
Take a look at !preg_match() using the POSIX extended meta character value [:print:] WeberSites LTD wrote: I'm trying to validate an RSS feed and getting errors about "high-bit characters". How can I check if a string contains any high-bit characters? thanks berber -- PHP General Mailing

RE: [PHP] Re: high-bit characters

2007-06-09 Thread WeberSites LTD
ge- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Abdullah Ramazanoglu Sent: Friday, June 08, 2007 11:43 PM To: php-general@lists.php.net Subject: [PHP] Re: high-bit characters WeberSites LTD dedi ki: > I'm trying to validate an RSS feed and getting errors about "high-bit >

[PHP] Re: high-bit characters

2007-06-08 Thread Abdullah Ramazanoglu
WeberSites LTD dedi ki: > I'm trying to validate an RSS feed and getting errors about "high-bit > characters". > How can I check if a string contains any high-bit characters? if (preg_match("/[\x80-\xff]/", $string)) { # high-bit char found } else { # no high-bit char } -- Abdul