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
Post a Comment