简体   繁体   中英

Find & Replace with a wildcard in Xcode 4

I'm trying to find all instances of text inside "" marks with a semi-colon directly after them, and replace the text inside the "" marks. So, for example:

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

Would find only those values after the equals signs, and could replace them all (with a single string) at once, like so:

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

How can I do this? I found some stuff referring to regular expressions in Xcode 3, but such functionality seems either gone or hidden in Xcode 4.

正则表达式替换在Xcode 4中仍然可用。使用“替换”并将样式设置为“正则表达式”,使用"([^"]*)";作为模式并替换为"BLAH";

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM