For the reg ex people

From: Date: Mon, 14 Aug 2000 16:45:53 +0000
Subject: For the reg ex people
Groups: php.general 
Request: Send a blank email to php-general+get-11632@lists.php.net to get a copy of this message
I'm trying to replace all "-" with any whitespace on either side in a string with a regular "-" with not whitespace. Something like this: "The news today is - something" would end up like "The news today is-something" I don't know how to use regular expressions well enough to do that. Could someone help me out?

« previous php.general (#11632) next »