A
A
arepository2019-01-23 18:17:53
Regular Expressions
arepository, 2019-01-23 18:17:53

How to delete certain lines of text in Notepad using regular expressions?

There is a file in txt format
A line with some letters, numbers and symbols
1 A line with some letters, numbers and symbols
2 A line with some letters, numbers and symbols
3 A line with some letters, numbers and symbols 4 A
line with some then letters, numbers and symbols5 A
string with some letters, numbers and symbols6
A string with some letters, numbers and symbols7 A string with some letters, numbers and symbols

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2019-01-23
@arepository

https://regex101.com/r/71hybK/1
Find: (?m-s)^(.+)(\n.+){2}
Replace:$1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question