Re: Re[2]: [PHP] ereg_replace help
| From: | trlists at clayst dot com | Date: | Thu, 18 Mar 2004 16:48:20 +0000 |
| Subject: | Re: Re[2]: [PHP] ereg_replace help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180853@lists.php.net to get a copy of this message | ||
On 18 Mar 2004 Richard Davey wrote:
> Nope, because in the only reference book I had to hand it said the ^
> matched the start of a string so it didn't occur to me to try it.
>
> Thanks to John I now know when used in a block it's no longer limited
> to the start of the string. The code you posted above works, thanks.
The '^' has a totally different meaning inside a character class than
its meaning outside the class. It's not a amtter of it being "limited"
so much as just "different" (actually I guess "overloaded" is the real
term).
--
Tom