by Cesare Rocchi

Objective-C Categories for Regular Expressions

by Cesare Rocchi

Tags: objective-c

I am not a heavy user of regular expression but I have tried this new library by John Wright and I find it very handy.

It basically allows you to write 75% less code. Here is an example taken from the Readme page

While I suggest to know what happens under the hood before using these kind of “shortcut libraries”, I am totally in favor of them when it comes to save yourself some typing.

So here is my general recipe:

  • get the basics right first
  • experience the pain of some API (I am looking at you Auto Layout!)
  • use (or even better build!) shortcut libraries/frameworks.

See you to the next library.