C
C
Clergyman2017-10-17 11:42:11
Regular Expressions
Clergyman, 2017-10-17 11:42:11

How to delete everything up to a given word in Notepad++ using regular expressions?

There is a document with 10,000 entries of this type:

https://yandex.ru/aaaaa/ggg/TARGET/uuuuuu
https://yandex.ru/bbbb/kkkk/TARGET/mmmm
https://yandex.ru/ccccc/eeee/TARGET/nnnnnn

The word /TARGET/ is repeated regularly on each line.
Tell me how, using regular expressions, you can bring the document to the form:
uuuuuu
mmmm
nnnnnn

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2017-10-17
@Clergyman

.*/TARGET/

A
Alexander, 2017-10-17
@zkelo

regex101
59e5c74e3e798987262579.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question