High text search and insert content in quotes

Original:

description: Hello World description: Hello India description: Hello Guys 

I have 20,000 lines of this in the yaml file, I want to search and put the description contents in double quotes , the description contents vary each line

I want:

 description: "Hello World" description: "Hello India" description: "Hello Guys" 

Is this possible, if so, can you offer me?

Thanks.

+7
source share
1 answer

You can use regex with find and replace (menu: find / replace). In the search box, enter:

 description: (.*) 

In the replacement field:

 description: "$1" 

Then click replace.

Remember to select the "regular expression" field:

enter image description here

+14
source

All Articles