A painting of me

Regular Expressions Can Be Fun

   16 March 2010, mid-morning

Russel Cox, one of the men behind Google’s new programming language Go, has written a three part article on regular expressions. It’s a nice mix of computer science theory, programming, and history: Regular Expression Matching Can Be Simple And Fast, Regular Expression Matching: the Virtual Machine Approach, and Regular Expression Matching in the Wild.

Perma-Link  

Comments

  1. This probably coincides with their release of re2

    I read the first article cause the analysis was interesting but only glanced through the 2nd and 3rd articles.

    It’s so rare that I see people using backreferencing to it’s fullest degree though, if at all. Most people I know use regexps as just ‘fancy search’.

  2. In the last article he talks about how they didn’t bother supporting back references because they are hard to implement correctly and quickly, and because most people don’t really know how to use them. re2 sounds pretty bad ass.

Don't be shy, you can comment too!

 
Some things to keep in mind: You can style comments using Textile. In particular, *text* will get turned into text and _text_ will get turned into text. You can post a link using the command "linktext":link, so something like "google":http://www.google.com will get turned in to google. I may erase off-topic comments, or edit poorly formatted comments; I do this very rarely.