How to check if string matches a regular expression in objective-c?

前端 未结 4 914
庸人自扰
庸人自扰 2021-01-30 21:56

since regular exressions are not supported in Cocoa I find RegexKitLite very usefull. But all examples extract matching strings.

I just want to test if a string matches

4条回答
  •  情书的邮戳
    2021-01-30 22:38

    NSRegularExpression is another option:

    http://developer.apple.com/library/ios/#documentation/Foundation/Reference/NSRegularExpression_Class/Reference/Reference.html

提交回复
热议问题