Split a number after the 9th digit

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

@nina.wenner

Check as below for your reference

image

Hope this may help you

Thanks

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:
grafik

Hi @nina.wenner

We can also use =left(yourstringvar,9)

image

Thanks,

Thanks for your help, it’s working.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.