I want to extract 4500001833 from below string
“Standard PO created under the number 4500001833”
I want to extract 4500001833 from below string
“Standard PO created under the number 4500001833”
How about this expression?
System.Text.RegularExpressions.Regex.Match(YourString,"\d+$").Tostring
Regards
Gokul
You can use this RegEx pattern to extract the desired data:
\d+
UiPath Syntax:
extractedNumber = System.Text.RegularExpressions.Regex.Match("Standard PO created under the number 4500001833","\d+").ToString
Hope this helps,
Best Regards.
If this is the only number then use
System.Text.RegularExpresions.Regex.Match(str,"\d+").Value
If that is the last value always then
Str.Split({" "},Stringsplitoptions.RemoveEmptyEntries).Last
Cheers
Try to sue Number if it is static @shruthi_arali
System.Text.RegularExpressions.Regex.Match(YourString,"(?<=number\s)\d+$").Tostring
System.Text.RegularExpressions.Regex.Match(YourString,“(?<=number\s)\d+”).Tostring
Input= "Standard PO created under the number 4500001833"
Output= System.Text.RegularExpressions.Regex.Match(Input,"\d+$").Value
Hope it helps!!
Try this way @shruthi_arali
output : -
Hi @shruthi_arali
Try This Expression
output_val = System.Text.RegularExpressions.Regex.Match(“input value”,“(?<=number\s)\d+$”).Tostring
Thank you