So I finally decided that I need help on this one guys!
My regex is working fine in the token editor and when I run the test (I have also run this and several other expressions within an online regex tester and all of them provided the exact response I was looking for) but when I run the process in Quickfields on the actual document, it's adding the second line from the OCR or just not working at all. I can't post the exact test I am running due to confidentiality reasons but I will replace the name for troubleshooting purposes.
Client Statement
Statement for the Account of
JOHN DOE SMITH
JDSM01
I have a zonal OCR on the area in which I am locating this text. What I need to do is make 2 separate tokens, one for the Client Name and one for the Client Number. This is the expression I've had the best results with in all of the editors I tested it in.......
Statement for the Account of\s*\n*(\w.+)\n
I need to get 'JOHN DOE SMITH' but all characters on the line after 'Statement for the Account of' (as the names will always vary)
I'm getting the full name and removing the client number underneath it on all of my tests both in Quickfields and a regex tester, but when I run it on the document I keep getting the client number added to the end with no spaces.
I also need to get the client number as a different token but I think I have that one working correctly already.
Can anyone direct me to a better approach and possibly help me understand why it works in all tests but not on the actual document? Thanks!