If you just want to match every group of digits, you should use the pattern
\d+. But if there are any other numbers in addition to the customer number anywhere in the text, these will all be matched. This is extremely likely to be the case, so then how do you know which is which?
If you want to get more specific matches, you’ll have to use as much context as you can to build the regular expression(s). Some things that can help:
- Is a particular single string, such as “customer”, always guaranteed to appear somewhere in front of the number in the extracted text?
- If not, could you exhaustively list strings that will be followed by the number you want?
- Does the customer number always appear at the end of a line?
- Are customer numbers of a particular format, for example always exactly 5 digits, or always between 4 and 6 digits?
Your example strings do not provide much context to go on, so if you can please give some samples of actual text you want to process. It is of course no problem to replace any sensitive data, as long as the replacements are of exactly the same format.
Also, I encourage you to test your own patterns against sample input here, to get a feeling for what you can do with regular expressions. This website has the same options and syntax that you can use in UiPath, and also has a handy syntax reference.