Regex:
((P\sO\sBox\s\d{3}\n)(.*?(?<=,\s[A-Z]{2}\s\d{5}[-]\d{4})))
PDF string:
blah blah
P O Box 111
Apples, CD 87956-8888
blah blah
Blah blah
Regex:
((P\sO\sBox\s\d{3}\n)(.*?(?<=,\s[A-Z]{2}\s\d{5}[-]\d{4})))
PDF string:
blah blah
P O Box 111
Apples, CD 87956-8888
blah blah
Blah blah
Ui Path Matches returns Null and Regexr returns what is needed.
Welcome @Destiny_Malone to the UiPath Community Forums
Take a look here at this Regex Pattern:
^P\s?O\s+Box\s+.*
It will also handle when there are no spaces between ‘P’ and ‘O’
Hopefully this helps you
Cheers
Steve
Hi,
Probably it’s linebreak matter. Can you try to add \r?
to your pattern as the following?
((P\sO\sBox\s\d{3}\r?\n)(.*?(?<=,\s[A-Z]{2}\s\d{5}[-]\d{4})))
Regards,
Try the following regex expression:
(?<=[A-Z\s])\d+\n(.*)
Hope it helps!!
Regards,
This was the solution, thank you!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.