Re: ereg_replace for whitespace?

From: Date: Tue, 22 Aug 2000 01:18:42 +0000
Subject: Re: ereg_replace for whitespace?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12855@lists.php.net to get a copy of this message
> On Mon, 21 Aug 2000, jeremy brand wrote: > > > Unless I'm wrong, it is because you are using " (double quotes) and I > > used ' (single quotes). > > > > ereg_replace('\ +', ' ', $userd[fname]); > > > > is not the same thing as > > > > ereg_replace(' +', ' ', $userd[fname]); > > I tried it and got the same result using ' with the slash and ' w/o > the slash. No biggy, I just like to know if there is a more efficient > regex, being that they are not the most efficient code, so I thought I'd > ask. Wow, you are right. I must have been on crack. -jeremy brand _______________________________________________________________________ GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9 _ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more __

« previous php.general (#12855) next »