Need the last 5 character of the file name

Post Reply
Jarmer
Newbie
Posts: 12
Joined: Mon Feb 23, 2015 3:47 pm

Need the last 5 character of the file name

Post 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é
bens
Member
Posts: 130
Joined: Thu Mar 03, 2011 10:13 am

Re: Need the last 5 character of the file name

Post 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"]
_olq
Member
Posts: 36
Joined: Fri Aug 23, 2013 10:21 am
Location: Poland

Re: Need the last 5 character of the file name

Post by _olq »

Hi,

You can use a regular expression:

Code: Select all

\d{5}$


Best regards,
Aleksander
Aleksander
Post Reply