ereg-replace and/or preg-replace should be able to do this much easier...
Not sure how to represent characters by Hex value in Regex though...
http://php.net/ereg_replace
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: richard merit <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Monday, February 19, 2001 4:30 PM
Subject: [PHP] High and Low ASCII characters
> We process a lot of documents, some text, some html,
> etc. I need to be able to strip out all characters
> below an ascii number and above an ascii number.
> Currently I check character by character, above or
> below a particular number the character is deleted or
> replaced in the new string. Anyone run across a
> quicker way to do this in php3....I checked the usual
> places and can't find anything or I missed
> something.....any help appreciated
>
>
> rm
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year! http://personal.mail.yahoo.com/
>
> --
> 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]
>
--
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]