How to Create a Regular Expression

In this example, we will create a Regular Expression to match some job names. The process involves deciding which jobs you want auto-proofed, creating a Regular Expression for them and selecting it in the RIPMonitor.

List of Job Names
DSCF-mike-test2.jpg DSCF-mike-test3.jpg
DSCF-mike-test4.jpg DSCF22913-p.jpg
DSCF22913-t.jpg DSCF22913.jpg
DSCF22919.jpg john-DS3test2.jpg
john-DSCFtest.jpg john-DSCFtest2.jpg
michael-DSCtest3.jpg mike-DSCFtest2.jpg
mike-DSCFtest3.jpg mikes-DSCFtest3.jpg
pete-DS2test.jpg pete-DSCF223test2.jpg
pete-DSCF223test3.jpg petec-DS2test.jpg
petec-DS2test2.jpg petec-DS3test2.jpg
petec-DSCFtest.jpg peterc-DSCFtest.jpg
ppp-petetest3-p.jpg sppp-pptest3-p.jpg
steve-DSCFtest.jpg steve-DSCFtest2.jpg
steve-DSCFtest3-p.jpg steve-DSCFtest3.jpg
stevie-DSCFtest3-p.jpg stevie-pptest3-p.jpg
stevie-test3-p.jpg

From this list we will auto-proof the following:

  • pete and peter jobs but not petec jobs.
  • john jobs but not the job john-DS3test2.jpg.
  • mike jobs where mike is in the middle of the job name only.
  • steve jobs but not stevie.

Steps:

  1. Create a new Regular Expression and give it a name.
  2. Add a new expression and change the name to “mike”.
  3. Choose Match Items using All of the Following.
  4. Enter the string “mike” at the bottom, choose contains and select Add.
  5. Enter the string “DSCF”. Choose Begins With and select Add.
  6. Add another expression and name it “Remove”.
  7. Choose Ignore Items using Any of the Following.
  8. Enter the string “DSCF”. Choose Begins With and select Add.
  9. Add another expression and name it “pete”.
  10. Choose Match Items using All of the Following.
  11. Enter the string “pete”. Choose Contains and select Add.
  12. Enter the string “petec”. Choose Does not Contain and select Add.
  13. Add another expression and name it “steve”.
  14. Choose Match Items using Any of the Following.
  15. Enter the string “steve”. Choose Contains and select Add.
  16. Add another expression and name it “john”.
  17. Choose Match Items using All of the Following.
  18. Enter the string “john”. Choose Contains and select Add.
  19. Enter the string “john-DS3test2”. Choose Is Not and select Add.
  20. Save the Regular Expression.
  21. Choose your RIP from the Workbench. Enable Autoproof. Select a Pagesetup or Pagesetup Pool to proof to and select your Regular Expression from the Filter button.
  22. Save the RIP.

Most of the expressions can go in any order. For this example, you cannot have the “remove” expression before the “mike” expression. If you did, the jobs required with “mike” in the middle start with “DSCF” and would be removed from the jobs matching before the “mike” expression got to work on them and they therefore would not auto-proof.

This entry was posted in Blackmagic, HowTo, Veripress. Bookmark the permalink.

Comments are closed.