String manipulation looking for only numbers

String manipulation
I have requirment
Ex :i have a value of 765-Rd
In this i need only 765

In some cases
Value will be like this 765
Here i also i need to get
765

Thank in advance

Hello, @Arya_Squares - Use the below regular expression

System.Text.RegularExpressions.Regex.Match(Input,"\d+").ToString

Input is the variable of type string that contains string value

Below workflow for ref

Example.zip (2.8 KB)

1 Like

we can do with regex as mentioned by Usha
grafik

1 Like

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