VI delete everything except a pattern
问题 I have a huge JSON output and I just need to delete everything except a small string in each line. The string has the format "title": "someServerName" the "someServerName" (the section within quotes) can vary wildly. The closest I've come is this: :%s/\("title":\s"*"\) But this just manages to delete "title": " The only thing I want left in each line is "title": "someServerName" EDIT to answer the posted question: The Text I'm going to be working with will have a format similar to {"_links":