Re: Extra spaces added by ereg_replace

From: Date: Tue, 25 Jul 2000 23:12:19 +0000
Subject: Re: Extra spaces added by ereg_replace
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8159@lists.php.net to get a copy of this message
> Whenever the output from ereg_replace and eregi_replace comes back, it > has an extra space on either side of whatever the output was. Now, this > doesn't matter if the output was displayed in a browser, but for an edit > function in a bulletin board (where the text was displayed back in a > textarea) it is painfully obvious. > > Please tell me there is a way around this. A friend and I are nearly > complete on a UBB PHP clone we've developed from scratch. This is not something inherent to those functions. It is something you are doing wrong in your regex. -Rasmus

« previous php.general (#8159) next »