Re: For the reg ex people
| From: | Andreas Pour | Date: | Tue, 15 Aug 2000 06:56:44 +0000 |
| Subject: | Re: For the reg ex people | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11750@lists.php.net to get a copy of this message | ||
Jason wrote:
>
> I'm trying to replace all "-" with any whitespace on either side in a
> string with a regular "-" with not whitespace. Something like this:
ereg_replace("[[:blank:]]*-[[:blank:]]*", "-", $text);
Ciao,
Andreas