String manipulation "Extraction of Supplier number " from a string

Hi All, I am new to UiPath.Facing issue with string manipulation. Input -“Supplier No. 5039932 PDS Services” and output needed as 5039913 . Note : PDS Services text is not fixed , It may change.

Please help

Hi,

Can you try the following expression?

System.Text.RegularExpressions.Regex.Match(yourString,"\d+").Value

Or

System.Text.RegularExpressions.Regex.Match(yourString,"(?<=Supplier No. )\d+").Value

Regards,

1 Like

Use this regx

str_output =
System.Text.RegularExpressions.Regex.Match(INPUT,"(\d+")

1 Like

Hey thanks a lot! It worked :grinning:

1 Like

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