Hi. I’m trying to use RegEx to parse a freeform Notes field into 3 columns using 3 phrases and so far I’ve been unsuccessful. The phrases are Root Cause, Resolution Plan and Resolution Date. The case may vary but the order should be consistent. Here is a sample of what the Notes field may contain:
Janie K, Aug 30 2018 8:44AM - Action plan is not on tab for reconciling item but is in comments on homepage. Root Cause-Past reconcilers were unable to determine the course to take to clear the open items. These were all system generated transaction & unknown how to clear these. Resolution Plan-Working with past reconciler & Business Analyst to try to get resolved. Resolution date: Expected to clear by 12/31/2018
The only thing I’ve been able to muster so far is to create the 3 fields using this regular Expression:
(root cause.*)|(resolution plan.*)|(resolution date.*)
Of course, this expression does not stop any of the comments, they just go to the end of the Note. And I can’t even pull this off when there is no carriage return in the Notes field. This Note, for example, only parsed on Root Cause, not the other two:
John S, Aug 28 2018 1:53PM - Root Cause: backlog of aged items. Resolution Plan: Reconciler was working to get account compliant by 6/30, but this was pushed out due to resource constraints due to the V2V transition. Reconciler has requested additional resource to assist in clearing, but the approval is still pending. The reconciler has not attached backup for all outstanding items, but will need to do so in order for account to be compliant. Resolution Date: 12/31/18
I would like to include 2 of the 3 phrases in their respective fields and then stop at the beginning of the next key phrase, except for the date field, which does not need to include Resolution Date. In this last example the 3 columns would be:
Root Cause
Root Cause: backlog of aged items.
Resolution Plan:
Resolution Plan: Reconciler was working to get account compliant by 6/30, but this was pushed out due to resource constraints due to the V2V transition. Reconciler has requested additional resource to assist in clearing, but the approval is still pending. The reconciler has not attached backup for all outstanding items, but will need to do so in order for account to be compliant.
Resolution Date:
12/31/18
Can anyone assist, please?