in reply to Re: to be or not to be...
in thread to be or not to be...

Well, not. That would mean "to be at the beginning or not to be at the end". And the /(?!bb)$ would match anything. If you are at the very end of the string you may be sure there are not two more "b"s left. :-)

Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature