Hi,
I have an invoice number as a string variable. I want to output only the first 9 digits from the number.
Example:
620239035001 → The result should be 620239035!
Can you give me a tip here?
Thank you and best regards
Nina
Hi,
I have an invoice number as a string variable. I want to output only the first 9 digits from the number.
Example:
620239035001 → The result should be 620239035!
Can you give me a tip here?
Thank you and best regards
Nina
Hi @nina.wenner
You Can also try with the Regex Pattern \d{9}
System.Text.RegularExpressions.Regex.Match(YourInputString," \d{9}").Value
Regards
the regex way:
Thanks for your help, it’s working.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.