in reply to to be or not to be...

I think the code should be:

/(bb|(?!bb)..)/

Update:And I think the /(.{2})/ should be read "give me anything, but I want it twice!".

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