This workflow takes a user defined regex expression as well as a file path of the PDF to be worked on. The workflow searches each page of the given PDF file. If a match is found, the PDF document is split with the first page containing the found match. This process continues through the PDF document until it reaches the last page. The user can also opt to delete the original file after splitting.
The output of this program if the regex pattern is found will be one or more PDF files in the specified output path (or in the original path if no output is specified). The files when split will be named as follows: YourFileName_1.pdf, YourFileName_2.pdf exc. for all splits located in the PDF.