Remove spaces from file names

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Remove spaces from file names

Postby 0080900 » Sun Jul 18, 2010 3:22 am

44 Losing Its Lustrous!

I want to remove the spaces from the example filename listed above

I want it to end being renamed to 044 Losing Its Lustrous! without the spaces of course, thanks anyone who can help
0080900
 
Posts: 2
Joined: Sun Jul 18, 2010 3:17 am

Re: Remove spaces from file names

Postby Stefan » Sun Jul 18, 2010 8:21 am

0080900 wrote:44 Losing Its Lustrous!

I want to remove the spaces from the example filename listed above

I want it to end being renamed to 044 Losing Its Lustrous! without the spaces of course, thanks anyone who can help


FROM:
44 Losing Its Lustrous!
TO:
044LosingItsLustrous!

DO:
Remove(5) Chars: " "
Add(7) Prefix: "0"

Note:
Don't enter the " " quotes, they are only for explanation.
So for Remove(5) enter an blank space at Chars:
For Add(7) enter an zero digit as Prefix:

HTH? :D


.
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: Remove spaces from file names

Postby 0080900 » Sun Jul 18, 2010 9:33 pm

Kind of, except I think the post thing skipped the spaces when I entered the filename, there's a space before the number, and a space between the number and the next chartacter

Something like in my screenshot

Image

see there's a space before the number and a space in the middle where my mouse cursor, I want to remove the spaces, just the spaces, but I don't want the name to end up as 044LosingItsLustrous!

From Image

To: 044 Losing Its Lustrous!
0080900
 
Posts: 2
Joined: Sun Jul 18, 2010 3:17 am

Re: Remove spaces from file names

Postby Stefan » Mon Jul 19, 2010 11:34 am

FROM:
~44~~Losing~Its~Lustrous!
TO:
044~Losing~Its~Lustrous!

(Where the ~ -sign indicates an space. )



DO (for example):

Find leading blank and replace by digit 'zero' :
RegEx(1)
Match: \s(.+)
Repla: 0\1

Find two spaces and replace by one space only:
Repl.(3)
Repla: ~~
With: ~
(Where the ~ -sign indicates an space. Just type an space/blank instead of the ~ )


Test export from context menu in BRU:
Code: Select all
 44  Test Test Test.txt
044 Test Test Test.txt
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU


Return to BRU Support