Re: still not friends with RegExps..
| From: | Zef Hemel | Date: | Tue, 15 May 2001 12:36:20 +0000 |
| Subject: | Re: still not friends with RegExps.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52840@lists.php.net to get a copy of this message | ||
$string = preg_replace("/[\\\*\+\-;]/s","",$string);
I think, you might have to escape the ; too
Zef
"elias" <elias_bachaalany@yahoo.com> schreef in berichtnieuws
9dr733$knl$1@toye.p.sourceforge.net...
> Hello,
>
> Maybe RegExps are still my point of weakness...but I still like them as
much
> as I like the Self-Reference phrases...
>
> Okay now, how can i replace all the matches of "\" , "*", "+",
> "-" and ";"
> with an empty string by calling once the preg_replace() or str_replace()
or
> any string replace function? ("")
>
> Do i have to call it as many times as i got different replacments?
>
> -elias
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>