Remove extra spaces in filenames

Advanced Renamer forum
#1 : 07/03-16 23:17
Juan
Juan
Posts: 2
I use TRIM command to remove unwanted spaces, dashes, and other unwanted characters from the beginning and end of the filename. What is the best way to remove extra spaces from the rest of the filename. Some of the filenames have 2, 3, 4, 5 spaces between words in the filename, I want to make all 1 space. EX ... This Is My File.mp4 change to This Is My File.mp4

Cheers


07/03-16 23:17
#2 : 08/03-16 10:24
Tester123
Tester123
Posts: 92
Reply to #1:

To replace multiple consecutive spaces with a single one, use this Replace method:

Text to be replaced: \s{2,}
Replace with: <-- "Put a single space here"
Use regular expression: Tick

Summary:
Look for any sequence of two or more '{2,}' spaces '\s' and replace with a single one.


08/03-16 10:24
#3 : 09/03-16 12:26
Juan
Juan
Posts: 2
Reply to #2:
Tester123 ... Thank you for the reply, exactly what I needed !

Cheers


09/03-16 12:26