正则表达式

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

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

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

 

 

二:中文字符串匹配

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

 

posted @ 2017-07-20 11:32  尘恍若梦  阅读(135)  评论(0)    收藏  举报