Re: Extra spaces added by ereg_replace

From: Date: Wed, 26 Jul 2000 00:04:33 +0000
Subject: Re: Extra spaces added by ereg_replace
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8173@lists.php.net to get a copy of this message
> This is not something inherent to those functions. It is something you > are doing wrong in your regex. Here's a for instance... $Message = eregi_replace("(<font face=\\\"Verdana\\\">\[Message edited by )([^<]*)(\]</font>)","",$Message); This generates 2 extra spaces (one on either side of the non-existant output). Keep in mind I'm a newbie to PHP. :^) Thanks again, -Matt

« previous php.general (#8173) next »