Regex trouble...
See attached workflow.
I am trying to extract the table fields from a table input (using computer vision tools in a batch macro).
Unfortunately, the source PDF was of poor quality and Alteryx was not always able to delineate the fields.
In my workflow....
If RQST and BILL are BOTH NOT NULL then the import was good. If they are 1 or both are NULL then the import was bad. The screenshot depicts all 3 cases.
The field to split is RAW.
I only care about
- the 1 to 3 {1,3} digits at the start of RAW. This is the Line Number (LN).
- the number group or groups (more often groups) at the end of raw. these will be 3 or more digits (but with commas). The first group is RQST. The second gorup is BILL. There may be instances when there is only one group. This is okay. It just means we don't know if its RQST or BILL that should be 0 or the value found at the end.
- Note if table import worked correctly there two ending number groups will be separated by a pipe "|" But, you can see in the that sometimes both, 1 or none are present.
How can I extract this.

