For eg I have
string=46 % of 62GiB
I want number before % i.e 46
how to write regular expression for this?
Please help?
System.text
Regularexpression.regex.match(strinput,“\d+”).ToString
Or try below
System.text
Regularexpression.regex.match(strinput,“.*(?=%)”.ToString
(\d+)(?=\s+%)
Str_out=System.Text.RegularExpressions.Regex.Match(Input,“(\d+)(?=\s+%)”).Value
Include Slash \ before % it will not updated while i put it to you
System.Text.RegularExpressions.Regex.Match(YourStringVar, "\d+(?= \%)").Value
[CheatSheet] - System.Text.RegularExpressions | RegEx - News / Tutorials - UiPath Community Forum
Thanks. How to check if percentage is in between 50-90% in if condition
error is option strict on disallows implicit conversions from string to double
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.