Thank you for the sample and expected output. Can you tell us more about the pattern, will it always be that many numbers etc or minimum length will always be…
You can use the Matches activity or use an assign activity like this.
This will grab the digits but must be 5 or more long and only at the start of a new string. So it shouldn’t catch any numbers in the address etc your but if it is, increase the “5”.
If you want to learn Regex - check out my Regex MegaPost for new users
Okay, so either post a full sample (remove customer data etc) or tell us more about the pattern of text. You may need to go away and find out more. For Regex, we need to know what is consistent so we can make a robust pattern. Like will there always be a dash below the numbers?
And the most reliable identifier is the
I basically want to say
I want the first number occurs after the word B/N for company
However that number might be located after one to three lines depending on the company information