Page 1 of 1

Need the last 5 character of the file name

Posted: Mon Mar 30, 2015 9:16 am
by Jarmer
Hi All

I need the last 5 character of the file name:

1234567890 then I only need 67890

How can I subtract the information ??

René

Re: Need the last 5 character of the file name

Posted: Mon Mar 30, 2015 9:30 am
by bens
If you have the scripting module you can use a simple script expression:

Code: Select all

job.getNameProper().right(5);
If you don't have the scripting module you can do it with variables, but only if the name is always the same length:
[Job.NameProper:Segment="6,10"]

Re: Need the last 5 character of the file name

Posted: Mon Mar 30, 2015 9:31 am
by _olq
Hi,

You can use a regular expression:

Code: Select all

\d{5}$


Best regards,
Aleksander