Page 1 of 1

Sort PDF data by even and even numbers

Posted: Tue Nov 24, 2020 12:17 pm
by lb-creative
We have a folder where the PDF files arrive. Now we want to include all PDF data with an even number in a job and all PDF data with an odd number in a job.

Following idea:
The PDF data are marked as follows: ZL-10-Us_059.pdf
or ZL-10-Us_060.pdf

We would now like to include the jobs using "regular expression". We have deposited the following:
First branch (all odd numbers):
\d*[13579]$

Second branch (all even numbers):
\d*[24680]$

Unfortunately this does not work. What are we doing wrong?

Thanks for your help!

Re: Sort PDF data by even and even numbers

Posted: Tue Nov 24, 2020 12:28 pm
by laurentd
You don't consider the characters before the digits and the extension.
Use .*[13579].pdf$ and .*[24680].pdf$

Re: Sort PDF data by even and even numbers

Posted: Tue Nov 24, 2020 12:31 pm
by jan_suhr
Are you testing this with [Job.NameProper]

Re: Sort PDF data by even and even numbers

Posted: Tue Nov 24, 2020 1:51 pm
by lb-creative
laurentd wrote: Tue Nov 24, 2020 12:28 pm You don't consider the characters before the digits and the extension.
Use .*[13579].pdf$ and .*[24680].pdf$
Great. That's how it works. Thanks a lot!