Home > Blockchain >  Match characters surrounding specific words
Match characters surrounding specific words

Time:10-02

I have summarized array of objects

 [{“first”: “John”, “last”: “Smith”}, {“first”: “Mary”, “last”: “Smith”}]

I want to implement a regex to match the quotes surrounding only the words 'first' and 'last' so I can find and replace them in VSCode. How would I go about doing this? Thanks in advance.

CodePudding user response:

Type in the find bar (top right)

first|last

and be sure to enable use Regular Expressions.

Then select all and replace.

  • Related