Re: String formatting using preg_replace
| From: | Jason Wong | Date: | Tue, 13 May 2003 17:42:13 +0000 |
| Subject: | Re: String formatting using preg_replace | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147474@lists.php.net to get a copy of this message | ||
On Tuesday 13 May 2003 22:39, Chris Blake wrote:
> Objective : Strip out all occurrences of the following from a string :
> /?<>,.;':"`!@#$%^&*()1234567890-+=\|
> ....and replace them with nothing
Don't know what you're trying to achieve but it may be easier to just match
the stuff that you do want and ignore the rest.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The life which is unexamined is not worth living.
-- Plato
*/