Can someone please explain? I read this on a t-shirt:

It seems to be saying: "To be or not to be"
How? I do not seem to be finding 'e'? :p
How exactly does this regex techy/geeky?
Assuming # for comments:
 /
  bb     # two b's
  |      #  or 
  [^     #  not
   b]{2} #  two b's
 /
Unfortunately the correct description would be: "two b or not b and not b" or "two b and two not-b" (which doesn't really gets close to "to be or not to be").
/bb|[^b]{2}/ => /bb|[^b][^b]/
Of course "two b or not two b" matches anything when expressed in regular expression!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With