D
D
Dwellss2021-10-26 12:40:55
Regular Expressions
Dwellss, 2021-10-26 12:40:55

How do I remove the "number-letter" construction in notepad?

Friends, please help with regexp. There are lines like this:

some text 278094-A, some text 278094-FG, some text 6508-N, some text

It is necessary to remove constructions with numbers and letters through a hyphen, i.e. to become like this:
some text, some text, some text, some text

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dodo512, 2021-10-26
@Dwellss

Search pattern \s\d+-[A-Z]+
Leave the replacement string empty.
https://regex101.com/r/ygB40a/1

S
SOTVM, 2021-10-26
@sotvm

this will work faster

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question