Regular expression

From: Date: Wed, 17 Jul 2002 10:08:29 +0000
Subject: Regular expression
Groups: php.general 
Request: Send a blank email to php-general+get-108074@lists.php.net to get a copy of this message
Hi, Could anyone help me with the following: I have to strip the domain from string only if it is not preceded with @ which means - when it is not an e-mail address. Examples: 1. blah blah blah someone@something.org blah blah should result in: blah blah blah someone@something.org blah blah 2. blah blah blah something.org blah blah should result in: blah blah blah blah blah Thanks a lot, Michal

« previous php.general (#108074) next »