Re: eregi_replace multiple words
| From: | Tyler Longren | Date: | Sat, 22 Jul 2000 16:24:01 +0000 |
| Subject: | Re: eregi_replace multiple words | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-7698@lists.php.net to get a copy of this message | ||
That was simple enough
On Sat, 22 Jul 2000, Rasmus Lerdorf wrote:
> Date: Sat, 22 Jul 2000 09:22:24 -0700 (PDT)
> To: Tyler Longren <tyler.longren@midiowa.net>
> From: Rasmus Lerdorf <rasmus@php.net>
> Subject: Re: [PHP] eregi_replace multiple words
>
> > <?
> > $string1 = "I want to remove some of these words!!!";
> > $string2 = eregi_replace("words want remove", "***", $string1);
> > print "$string2";
> > ?>
> >
> > I want something like that. I know that won't work. Anybody know how
> to
> > do this?
>
> "(words|want|remove)"
>
> -Rasmus
>
>
> --
> 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
>