I want to do a simple task and yet there doesn't seem to be a simple way to do it! I have a file that I want to process for our production and then RENAME. The way I want to rename is to keep only the last seven characters (to the left of the extension) and delete the rest of the filename. (eg FOM_IMAFILE_100PERCENTSCALE_E.17-3.pdf to be renamed "E.17-3.pdf".
I have studied on the "Rename Job" flow element and cannot figure out how to make this happpen. Can anyone help? Thank you!
Rename Job
Re: Rename Job
You will see "Define regular expression" in the properties under each Action.
There you can write a Regular Expression that works on [Job.Nameproper] and only use the last seven characters.
Google RegExp if you need help about it.
There you can write a Regular Expression that works on [Job.Nameproper] and only use the last seven characters.
Google RegExp if you need help about it.
- magnussandstrom
- Advanced member
- Posts: 365
- Joined: Thu Jul 30, 2020 6:34 pm
- Location: Sweden
- Contact:
Re: Rename Job
This should work: .{7}$
Change the number if you want more or less characters and remove the $ if you want to start from the first character instead of the last.
Change the number if you want more or less characters and remove the $ if you want to start from the first character instead of the last.
Last edited by magnussandstrom on Wed Sep 02, 2020 2:52 pm, edited 1 time in total.