BasicDemos-iOS/RegularExpression at master · Xchn/BasicDemos-iOS · GitHub
Skip to content

Latest commit

 

History

History
 
 

Folders and files

正则表达式NSRegularExpression

在这个demo里,通过以下三种方式学习正则表达式:

  1. 进行文本查找、替换。
  2. 验证用户输入文本是否符合格式要求。
  3. 自动格式化用户输入文本。

FirstSecondThird三个视图控制器对应实现上述三项功能。

详细介绍查看下面文章:

https://github.com/pro648/tips/wiki/正则表达式NSRegularExpression