W
W
Wsearch2021-02-19 21:18:23
Regular Expressions
Wsearch, 2021-02-19 21:18:23

How can I edit a string with a regular expression in Notepad++?

How to edit a document of this kind through regular expressions? I've tried everything, it doesn't work.
Document:

00257--строка а
00258--строка - а а 
00259--аапап
00260--апа3увва
00261--вавав3уау
00262--вавапвп3пкп

You need to leave only what goes up to --. Delete the rest.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2021-02-19
@Wsearch

(-.+)$
603002c922e5a500480363.png
If you want to leave the hyphens, just replace with "--".
In general, there are +100500 more methods.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question