I am stuck on a pattern match inside a workflow. How do I tell the pattern to ignore any space and only grab numbers?
I need to match the second set of numbers in the pattern #123#456#. In that example, I'd like to grab 456.
As it will not always be 3 numbers in between the # symbols, I would use #\d+#(\d+)#
However, the text i'm pulling is from an OCR'd document and the OCR is not always 100% accurate. Sometimes it throws a space randomly any where between the numbers. There is no consistency to the number of spaces or their location. ex: # 1 2 3 #4 5 6# or #123#45 6# or #1 23# 456 #
I want to grab 456(or any number) no matter if there are spaces anywhere in between the # symbols. Is this possible? It's driving me nuts.... I see something about using (?x) but I cannot figure out where to put that in my expression.
Thanks in advance!