Readable Regexp

Ever found a regexp in code and had to spend time trying to understand what it meant.

I just read an great article from Martin Fowler on how to make your regexps easy to read. It’s a really simple and elegant solution, spilt your regexp into individual tokens with understandable names. Read it here

Share

  • Digg
  • del.icio.us
  • DZone