P
P
PotLo2019-09-05 14:47:57
Notepad++
PotLo, 2019-09-05 14:47:57

How to delete in lines with certain characters - everything is superfluous, except for these characters?

Example:
ayyyellow
234234red
dulvyellow
red99
green223
In the above list, for example, I need to clean up extra characters in the lines containing the word "red" (so that only "red" remains), but the rest of the lines should not be affected. How can it be implemented?
Notepad

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dodo512, 2019-09-05
@PotLo

Find: (?m-s)^.*(красный).*
Replace:\1

W
Welgen, 2019-09-05
@Welgen

Excel has a "text by columns" function, where you can specify an arbitrary separator. Only the rows you need will be affected.
https://support.office.com/en-us/article/%D0%A0%D0...
After separation, this function may also be useful
https://support.office.com/en-us/article/%D0 %9E%D0...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question