Remove leading space in filename

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Remove leading space in filename Thu Dec 25, 2025 11:45 am • by schwane
I have a file that starts with a space and then a random date each month. It has other spaces later in the filename.

I want to just remove the leading space. There is not pattern to match, just want to remove the leading space.

Seems easy but stumped, thanks for the help.
schwane
 
Posts: 2
Joined: Thu Dec 25, 2025 11:41 am

Re: Remove leading space in filename Fri Dec 26, 2025 9:31 am • by Mr_Noodle
Look up match patterns in the manual. Using those, you can set up a pattern to match a space followed by a custom text attribute set up to match anything. In a Rename pattern, you can then use that custom text attribute, which contains the name of the file minus the leading space.
Mr_Noodle
Site Admin
 
Posts: 12100
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Remove leading space in filename Fri Dec 26, 2025 12:47 pm • by schwane
How do I replace text with just the first space and not the other spaces.
schwane
 
Posts: 2
Joined: Thu Dec 25, 2025 11:41 am


Return to Support