Re: PHP regular expression

From: Date: Wed, 13 Mar 2002 05:29:39 +0000
Subject: Re: PHP regular expression
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88297@lists.php.net to get a copy of this message
Here is it $html = preg_replace('/"?Email:\s+\w.*\.[\w.]*"?/',"",$html); I tested it and its working. On Tue, 12 Mar 2002, Rodrigo Peres wrote: > Hi list, > > I have a huge text file with many text on it. I'd like to know if someone > can help in construct a regular expression to delete everything that not > have this pattern "Email: some@email.adress". The part "Email: " is fixed > and the email adress changes. I've tried many time to make the replace with > PHP, but I'm very new to regular expression. > > Thank's > > Rodrigo > -- > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > <smk_bk@yahoo.com> ------------------------------------------------------------------- We must use time wisely and forever realize that the time is always ripe to do right." -- Nelson Mandela -------------------------------------------------------------------

« previous php.general (#88297) next »