首页 > 技术文章 > 正则表达式

developer-qin 2017-07-20 11:32 原文

一,Xcode 使用正则表达式进行替换

presentModalViewController:(.*) animated:(.*)

createLeftBarButtonItemWithFrame:(.*) withImage:——>createLeftBarButtonItemWithImage:

 

 

二:中文字符串匹配

@"[^"]*[\u4E00-\u9FA5]+[^"\n]*?"

 

推荐阅读