Extract part number from a string

Hi Everyone,

Have a requirement where I need to extract part number from an website

But here the catch is I need to vomit alphabets and take numbers only

Ex: AJ34717

Output :34717

Hi @tester9081

Check out the expression

System.text.regularexpressions.Matches(your input var,“([0-9]+)”)

1 Like

Welcome @tester9081 to the UiPath Community Forum :partying_face:

Try this:
System.text.regularexpressions.regex.match(yourStr,“\d+”).ToString

Preview the regex pattern here:

Cheers
Steve

1 Like

Thanks @nikhil.girish @Steven_McKeering

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