In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Bill) wrote:
> Is there a function that can strip high ascii from a string? How about a regex? preg_replace() supports matching on octal or hex ranges <http://www.php.net/manual/en/pcre.pattern.syntax.php>, so perhaps one of these...? $newstring=preg_replace('/[\200-\377]/','',$oldstring); //octal $newstring=preg_replace('/[\x80-\xff]/','',$oldstring); //hex -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]