M
M
mate1232021-05-25 18:46:25
Regular Expressions
mate123, 2021-05-25 18:46:25

How to use regular expressions in search in VScode?

there is a string of the form {"name":"name","lastname":"lastname}, there is also a string that does not contain lastname {"name":"name"}, how to find all lines that do not contain lastname?
"name":"* " => this is how it finds all strings with name I can't correctly escape open closed quotes to find everything that will only look like this {"name":"*"}, so I'm asking for help to find all strings like this {"name": "*"},

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2021-05-25
@dodo512

{"name":"[^"]*"}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question