Archive for January 24th, 2007

Regular Expressions for NSString

Last weekend I was looking for different options to validate NSString objects against some regular expressions.
While there are some 3rd party classes for doing regular expressions in Cocoa and wrappers for Perl/PCRE there is a way to do that without external software. The magic word is called NSPredicate.
This approach may perhaps not be obvious because there is (at this time) no direct documentation or hint in the ADC documentation.

Technorati Tags: ,

Continue reading ‘Regular Expressions for NSString’