Rename Job by Regular Expression
Posted: Thu Aug 08, 2019 9:50 am
Just trying the example 4 in "Use regular expressions in Enfocus Switch" in Youtube.
1. For the job file "B412344_6.pdf" wants to change into B412344_p006.pdf
using "Rename Job" Element,
search : [Job.NameProper:Search="_\d{1}$"]
and replace: p00[Job.NameProper:Search="\d{1}$"]
2. For the job file "B412344_26.pdf" wants to change into B412344_p026.pdf
using "Rename Job" Element,
search : [Job.NameProper:Search="_\d{2}$"]
and replace: p0[Job.NameProper:Search="\d{2}$"]
3. I found that I can work fine if I use 2 different Rename Job Element.
( In my screen dump, Input folder "1 digit", "2 digit")
4. However, if I put them together as Action 1 for 1 digit, Action 2 for 2 digit, or vice versa. The jobs will go to problem job with error "Dynamic property "SearchFor1 (or 2)" has invalid value."
(In my screen dump, Input folder is "F_1-digit, S_2-digit" and "F_2 digit, S-digit")
So I would like to see any mistakes being made.
Thank you in advance!
1. For the job file "B412344_6.pdf" wants to change into B412344_p006.pdf
using "Rename Job" Element,
search : [Job.NameProper:Search="_\d{1}$"]
and replace: p00[Job.NameProper:Search="\d{1}$"]
2. For the job file "B412344_26.pdf" wants to change into B412344_p026.pdf
using "Rename Job" Element,
search : [Job.NameProper:Search="_\d{2}$"]
and replace: p0[Job.NameProper:Search="\d{2}$"]
3. I found that I can work fine if I use 2 different Rename Job Element.
( In my screen dump, Input folder "1 digit", "2 digit")
4. However, if I put them together as Action 1 for 1 digit, Action 2 for 2 digit, or vice versa. The jobs will go to problem job with error "Dynamic property "SearchFor1 (or 2)" has invalid value."
(In my screen dump, Input folder is "F_1-digit, S_2-digit" and "F_2 digit, S-digit")
So I would like to see any mistakes being made.
Thank you in advance!