问题
Is there any way that I can search something like string1 || string2 in my Xcode project and or in a single file?
When doing such I want Xcode to highlight wherever it finds string1 OR string2.
回答1:
Yes, you can just use a regular expression, e.g. string|string2.
For multiple file search across whole project:
For single file search then just use the normal find and change the Find Options from Textual to Regular Expression:
来源:https://stackoverflow.com/questions/39641774/search-multiple-strings-in-xcode