Re: Stripping characters.....

From: Date: Sun, 28 Apr 2002 06:33:15 +0000
Subject: Re: Stripping characters.....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94966@lists.php.net to get a copy of this message
In article <5.1.0.14.2.20020428011219.02071998@redhotsweeps.com>, mail@redhotsweeps.com (Cditty) wrote: > ie....User email address is "Chris Ditty" > <mail@redhotsweeps.com> or Chris Ditty <mail@redhotsweeps.com> > > I need to be able to strip the quotes and everything between them and the > < > signs from the first one and then the name and the < > signs from the > second. > > Does anyone know how to do this quickly and easily? <http://php.net/preg-replace>. For example: preg_replace('/^.*<(.+)>.*$/',"$1",$mailstring); -- CC

« previous php.general (#94966) next »