How to use Regular Expressions in Cocoa (Part 2)
In the [first part of this series](http://tearesolutions.com/2006/09/how_to_use_regular_expressions.html) we saw how you can add support for regular expressions to your cocoa project.
The ruby guys & gals would gasp at the complexity of the previous article. Heck, even the Java folks have it better than that (at least in v1.4, 8 years after the original release). Surely we can be at least equal to a sucky language like Java?
Let's see if we can make regex support simpler, even if we can never achieve the lovely eloquentness of Ruby:
return true if "Dave Teare" =~ /^dave.*$/i
In this article, we'll make our Objective-C as nice as Java by adding a "matches" method to NSString.
Continue reading "How to use Regular Expressions in Cocoa (Part 2)" »