Re: preg_replace

From: Date: Mon, 11 Feb 2002 17:36:21 +0000
Subject: Re: preg_replace
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-84295@lists.php.net to get a copy of this message
Why not use str_replace() or just pasre th? string with single for(;;) ? Valentin Petruchek (aki Zliy Pes) *** Cutthe beginning *** http://zliypes.com.ua mailto:val@zliypes.com.ua ----- Original Message ----- From: "Scott" <scott@scottah.com> To: <php-general@lists.php.net> Sent: Monday, February 11, 2002 7:14 PM Subject: [PHP] preg_replace > Can someone guide me on preg-replace (or other option). I have an array > that I am splitting, but before I do that I want to remove all dashes(-), > periods (.) and colons (;). Here is what I tried: > > $fields = preg_match_all("[.:-]", "", $policy[$p]); > > When I do everything remains in the file, is there a perl similar //g > global switch I might be missing. > > Thanks, > > -Scott > > > > > -- > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#84295) next »