100 % Availability
how to split this string to take only the number without any spacing
- be noted that the number is keep changes
100 % Availability
how to split this string to take only the number without any spacing
Hi @rawanghurab1 ,
To extract the number from string you can achieve this by using regular expression.
You can use Activities - Find Matching Patterns (uipath.com)
Regex :
(\d)
Set Variable Value activity -> Input = "100 % Availability"
Set Variable Value activity -> Output = System.Text.RegularExpressions.Regex.Match(Input,"\d+").Value.Trim()
Input and Output are of DataType System.String.
Regards
Hi,
Please find the xaml file below. It will fetch the numbers from string though number is changing dynamically.
Main.xaml (7.1 KB)
It this works for you, please mark this as a solution, so others can refer the same… ![]()
Thanks