A
A
arepository2019-08-02 15:01:52
Regular Expressions
arepository, 2019-08-02 15:01:52

How to remove garbage at the end of lines in a text document?

At the end of a text document, at the end of each line, I have some kind of spaces that look like a space, but these are not spaces or tabs because I tried to remove them with standard functions in a notepad like Edit-> Remove spaces at the end of a line, Edit-> Spaces in tabulation, tabulation into a space, etc. this does not help anything ... Is there any way through a regular expression that will clean everything up to the last character?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stockholm Syndrome, 2019-08-02
@arepository

try \s+$replacing with an empty string

F
Farwisdomer, 2019-08-02
@Farwisdomer

https://superuser.com/questions/621720/remove-empt...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question