Xcode开发技巧
Xcode正则表达式查找并替换文本
需求:
我要将text1(@"hello")的文本替换为text2(@"hello", @"world")的文本
技巧:
在Xcode中采用正则表达式查找并替换,正则表达式如下:
find: text1\(@\"(.*)\"\)
replace: text2(@"$1", nil)
Replace > Regular Expression
Xcode开发技巧
Xcode正则表达式查找并替换文本
需求:
我要将text1(@"hello")的文本替换为text2(@"hello", @"world")的文本
技巧:
在Xcode中采用正则表达式查找并替换,正则表达式如下:
find: text1\(@\"(.*)\"\)
replace: text2(@"$1", nil)
Replace > Regular Expression