Re: Regular expression

From: Date: Wed, 17 Jul 2002 14:03:02 +0000
Subject: Re: Regular expression
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-108080@lists.php.net to get a copy of this message
Andrey Hristov wrote:
Something like this. $your_string = preg_replace('/[\d\w]+@([\w\d]{3,}\.)+([\w]{2,4})/','', $your_string); HTH Best regards, Andrey Hristov
Thank you very much for your time, but this strips the e-mail address and lives the domain. Could you give me some hints on how to make it working the opposite way? Regards, Michal

« previous php.general (#108080) next »