Regex symbol + not working

Hi, I am trying to rename a lot of files with unwanted trailing spaces. Some files have more than one trailing space.

I am using the expression (.*)[\s]+$ rename \1 (suffix ignore box checked), but it will only remove one space, not several. The + symbol seems to be ignored. What am I doing wrong? My OS is Windows 7 Pro.

Thanks for a great program.

Try (.*[^\s])[\s]+$ to ensure the (.*) doesn't match any of the spaces you want to remove.

1 Like

You're a genius! I'm chuffed. Thanks for your incredibly rapid response!

1 Like