I have a column of data that looks something like this:
OR:185520, TR: 3956, CO:8, PR:BC6-1-A2, Gross QTY:5003.
OR:185583, TR: 29771, CO:1, PR:BC1-1-A1, Gross QTY:5001.
OR:186772, TR: 32438, CO:4, PR:BC6-1-A1, Gross QTY:6703.
OR:186728, TR: 32359, CO:2, PR:BC2-1-A1, Gross QTY:3900.
OR:187641, TR: 32438, CO:1, PR:BC6-1-A3, Gross QTY:6302.
OR:922609, TR: 170412, CO:5, PR:P-MN52, Gross QTY:5797.
OR:19956, TR: 1032, CO:1, PR:P-MN23, Gross QTY:4000.
OR:14496, TR: 1024, CO:7, PR:P-MN32, Gross QTY:5000.
The value that follows the PR: is either in a BC#-1-A# or P-MN## pattern. I my current workflow I have 1 regex module for each pattern which puts the values into separate. The 2 patterns configured are
.*PR\:(BC[1-9]-[1-9]-A[1-9]*).*
.*PR\:(P-MN[0-9]*).*
The columns merged into a single column later which in a round about way meets my requirement.
The problem is this generates a lot of errors just becuase for every row in the data that is processed one of the regex modules will fail. What I would like to do is be able to pickup both pattern with a single Regex module. It will remove 6 modules from my workflow.
I hope someone may have some suggestions.
Thanks.
tC/.