Find and replace using a template in Xcode 4

I try to find all instances of text inside the "labels with a colon immediately after them and replace the text inside the" "labels. So, for example:

"FirstKey" = "First value"; "SecondKey" = "Second value"; "ThirdKey" = "Third value"; 

Only these values ​​are found after the equal signs and can immediately replace them (with one line):

 "FirstKey" = "BLAH"; "SecondKey" = "BLAH"; "ThirdKey" = "BLAH"; 

How can i do this? I found some things related to regular expressions in Xcode 3, but such functionality seems to be either lost or hidden in Xcode 4.

+7
source share
1 answer

Regex replacement is still available in Xcode 4. Use "Replace" and set the style to "Regular Expression", use "([^"]*)"; as a template and replace it with "BLAH"; .

+12
source

All Articles