Page 1 of 1

Rename Job

Posted: Mon Aug 31, 2020 11:53 pm
by SteveT
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!

Re: Rename Job

Posted: Tue Sep 01, 2020 7:52 am
by jan_suhr
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.

Re: Rename Job

Posted: Wed Sep 02, 2020 2:51 pm
by magnussandstrom
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.