I've got to rename our application and would like to search all strings in the source code for the use of it. Naturally the app name can appear anywhere within the strings and the strings can span multiple lines which complicates things.
I was using (["'])APP_NAME to find instances at the start of strings but now I need a more complete solution.
Essentially what I'd like to say is "find instances of APP_NAME enclosed by quotes" in regex speak.
I'm searching in Xcode in case anyone has any Xcode-specific alternatives...
(["'])APP_NAME\1(to find'APP_NAME'and"APP_NAME")(["'])(?:(?!\1).)*APP_NAME.*?\1"[^"]*APP_NAME[^"]*"|'[^']*APP_NAME[^']*'