T
T
TechNOIR2017-09-25 08:52:19
Regular Expressions
TechNOIR, 2017-09-25 08:52:19

notepad++. How to find and delete a piece of text in all lines?

Good afternoon!
There is a file with 8000 lines.
There are lines with a name that looks like this "CM-061 Product"
How can I regularly remove an article like CM-XXX,CM-XXXX from all lines?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2017-09-25
@TechNOIR

CM-\S+Will look for CM-XXX where XXX is any character except until there is a space.
If you need exactly either 3 characters or 4 and no others, then you can set the range
. If it is known that these will be exclusively numbers, then you can
use this: open a replacement, insert a regular expression into the first field, leave the second blank.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question