A
A
Alexander Markov2020-11-04 12:22:00
Regular Expressions
Alexander Markov, 2020-11-04 12:22:00

How to search in Notepad+ using regular expressions?

1. There are lines in the text file: "title": "various text"
Find everything in this file.
2. There are lines in the text file:
"url": "different text"
Find everything in this file.

3. There is everything in a common line in a text file:
"title": "different text", "url": "different text"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dollar, 2020-11-04
@dollar

So search. Only instead of different text - .*or [^"]*
https://regex101.com/r/hOVnnF/1

S
Sergey Vodakov, 2020-11-04
@WaterSmith

To search for both, you can write:
("title"|"url"): "[^"]*"
About \ you did not write anything in your question
(\\"title\\"|\\"url\\"): \\"[^"]*"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question