Unfortunately, the correct description would be: "two b or not b, not b" ββor "two b and two not-b" (which really doesn't come close to "to be or not to be").
/bb|[^b]{2}/ => /bb|[^b][^b]/
Of course, βtwo b or not two bβ matches anything if they are expressed in a regular expression!
source share