[英]How to find and replace regex in Xcode
I want to add "=" before number 3 and ";" 我想在数字3和“;”之前添加“ =” after 3 below line 在第3行以下
before: 之前:
static NSInteger const LOAD_USER_PAGE 3
...
...
after: 后:
static NSInteger const LOAD_USER_PAGE = 3;
There are lots of lines like this. 有很多这样的行。
How could I do this in XCode? 如何在XCode中做到这一点?
Press Magnifier icon next to find text area. 按旁边的放大镜图标查找文本区域。 Select Edit Find Options-> Regex 选择编辑查找选项->正则表达式
Then, 然后,
Find Text Box 查找文本框
([0-9].$) ([0-9]。$)
Replace Text Box: 替换文本框:
= $1; = $ 1;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.