Skip to main content
Ben Nadel at cf.Objective() 2017 (Washington, D.C.) with: Jake Scott
Ben Nadel at cf.Objective() 2017 (Washington, D.C.) with: Jake Scott

The 6th Annual Regular Expression Day (And Prizes) - June 1st, 2013

By on

Holy cow! I can't believe that it's been six years since we launched the first International Regular Expression Day in honor of one of the most powerful tools in programming history - pattern matching. From validating email addresses to parsing CSV files to transforming data, regular expressions make our lives better; they make our software stronger; and they kind of, sort of, just a little bit make us feel like super bad-asses.

NOTE: If you are already completely lost and have no idea what I'm talking about, please checkout my video and slide presentation - Regular Expressions, Extraordinary Power. They will blow your mind and change your world forever.

Now, as with all previous years, this celebration has snuck up on me and I find myself woefully underprepared. I know what you're thinking, "classic Ben!", right?! So, unfortunately, I'm gonna take the easy way out and do something that I've always wanted to try - running a Twitter campaign. This year, in honor of the Regular Expression, I'm giving away an iPad Mini. And, in order to enter, all you have to do is tweet the following message (click the image below):


 
 
 

 
Regular Expression Day 2013 - Tweet to enter to win an iPad Mini!  
 
 
 

Click here to Tweet message!

Since Regular Expression Day falls on a Saturday, I'll hold this open until Friday, May 31st - 3PM EST. At that time, a winner will be randomly selected from all the tweets!

Have fun and have a wicked awesome Regular Expression Day!!!!

Winner Update

Congratulations to Kyle Doge for his winning tweet!


 
 
 

 
Regular expression winner - Kyle Dodge.  
 
 
 

Thank you all for participating. And, remember, if you use Regular Expressions, you're already a winner!

Reader Comments

12 Comments

Yay! RegEx Day is back! Our family baked and decorated a cake last year in it's honour. A tweet is a lot easier (and less messy). Thanks Ben!

15,643 Comments

@Matt,

Ha ha ha, they finally found a way to keep the humans out!

@Seth,

Just didn't have time this year :( I thought it would be fun to have been tweet regular expression patterns than would match their twitter handle... but, maybe next year when work / life is not so busy!!

@Matt,

Less messy, but significantly less delicious :D

5 Comments

I tried a few more times and none of the CAPTCHAs cleared.

And I no longer care- Twitter was never that important to me.

If it's okay with you, I can just post my entry here.

5 Comments

(?:[Rr]osencrantz|[Gg]uildenstern)(?=([\w\s]*Hamlet))

If Hamlet is after Rosencrantz or Guildenstern, he captures them.

Sample data:
Rosencrantz Hamlet
Guildenstern Hamlet
Guildenstern Rosencrantz Hamlet
RosencrantzHamlet
rosencrantz Hamlet
guildenstern Hamlet
guildenstern rosencrantz Hamlet
Ophelia Guildenstern Rosencrantz Hamlet
Guildenstern Rosencrantz

(Hamlet doesn't capture Ophelia. He likes her.)

Tested at http://regexpal.com/

2 Comments

Since I read the whole blog series from a. cameron, i see even more the power of REGEx...now I need to get into it more than I have...This is a reminder of that. Now the iPad Mini would be an even bigger reminder :)

6 Comments

I decided to post 2 simple patterns that I use often when looking thru log files

#Remove log lines not containing 'text'
^(?![^\r\n]*text)[^\r\n]+[\r\n]+

#Remove log lines containing 'text'
^[^\r\n]*text[^\r\n]*[\r\n]+

1 Comments

Congrats Kyle. Lucky punk! If it's missing from your office one day, I think you'll know who took it. :)

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel