I am facing an issue with using the Extract Regex Values action. There is very limited documentation provided for this action. I've done some research and made some progress, but I am not able to make the last connections to solve this problem. I'm hoping someone will be able to help, and I thank you all in advance.
I am able to generate a Regex pattern that extracts the correct data from my Target String, but I am unable to get it to work within Blue Prism. From my research, it appears that I need to reference the value that I'm looking for in the Regex pattern itself. I€™m not sure how to do that, and could use some direction.
My Target String is a multi-line, variable text string called "Address Block". Here's an example:
" JAMES JOHN JONES JR
135 GRANDERSON AVE
ANYTOWN NY 99999
"
I am trying to extract the 2-character State ("NY" in the example above), which I am calling Address State. I have referenced Address State in the Name field on the Initial Values tab of my input collection "Named Values". My Regex pattern (shortened for readibility) is "\s(CT|MA|ME|NH|NY|RI|VT)\s\s". Results are output to the same collection "Named Values".
My question is: How do I reference Address State in this Regex pattern, so that the Extract Regex Values action will work properly?
Thank you.
Peter Lomi