OLW: #RegularExpression Joke

Here’s a #regex (for languages like #Go, #Java, #Lua, #Javascript, #ObjectiveC, #Perl, #Python, #Ruby – any language that uses regular expressions) that is both code and joke rolled in to one:

question = /(bb|[^b]{2})/

In case you still do not get it, think of Hamlet…

“I saw a dog in a cage. And that cage had a sign on it that said, ‘I bite.’ And I was like, ‘That is good to know doggy, but that’s not the most important thing about you. You should make a sign that says, ‘I make signs.’’” – Doug Benson

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s