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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php