Find/Replace in Xcode using Regular Expression

前端 未结 6 1601
不思量自难忘°
不思量自难忘° 2020-12-04 10:43

I have the following function calls at several places in my class.

[myClass doOperationOne];
[myClass doOperationTwo];
[myClass doOperationThree];

6条回答
  •  借酒劲吻你
    2020-12-04 11:28

    In the current version of Xcode, I believe you can only search using regular expressions. Replace doesn't give you that flexibility. If you only have three methods you want to replace in this manner, I would run search and replace three times. Otherwise, I would modify my source code in BASH using awk or sed.

提交回复
热议问题