notepad++ - Regex: remove repeated last characters on a line -


i have csv file generated excel, lines ends lot of comma:

1,toto,,,,,,,, 2,tata,10,2,,,,,, 3,titi,5,,,,,,, 

how can remove comma @ end of each line can get:

1,toto 2,tata,10,2 3,titi,5 

i using search , replace tool notepad++ can use regex.

thanks

this should work:

,+$ 

it matches 1 or more commas @ end of line.

so put find pattern, , nothing replace pattern (and don't forget enable regex).


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -