I have a workflow that retrieves text with pattern matching and need to grab the second number after “AGENCY ID:”, which would be the 0000509924.
But in production, it doesn’t work. I keep getting the 0000017712, like this:
I’ve been able to get the following regexes to work in a test environment (within the patten matching token dialog). These are the ones that worked. I have other variations of these 3, all work the same.
(?<=AGENCY ID:)\s*\d*\s*(\d{10}) (?<=AGENCY ID:)\s*\d*\s*(\d*) (?<=AGENCY ID:)\r*\n*\n*\d{10}\n*\r*\n*(\d{10})
I’ve been able to determine that at least from a cut and paste into the test area that the text appears like this, but it might just be the way it has been cut and paste, no telling what characters are actually there in production.
AGENCY ID:\r\n\n0000017712\n\r\n0000509924
How can I solve this? Thanks!