Trim Filename

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

Moderator: Mr_Noodle

Trim Filename Wed Sep 18, 2019 1:36 am • by diegogozer
Hi, Guys, I have some files that have spaces at the beginning of it.
Since the file name can be more than one word, the renamer function is not possible, as far as I know.

Someone could give some light on how to approach it.

Posts: 1
Joined: Tue Oct 23, 2018 10:35 pm

Re: Trim Filename Wed Sep 18, 2019 9:59 am • by Mr_Noodle
It may be doable using match patterns. Have a pattern try and match a space (which will match any amount of whitespace) before and after, but use a custom attribute to grab everything in between. Rename using that custom attribute. You might need several conditions to cover a space before, space after and then both before and after.
Site Admin
Posts: 8363
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Return to Support