I made the following regex to grab the % from a string.
Regex expression = new Regex("(?=~).*(?=</b></td><)");
Match result = expression.Match(s);
I want to grab that 81 but the above regex code giving me ~81 how can grab only 81.
Thanks
Code
string s =<tr><td colspan="4"><b>Sort tonerkassett ~81%</b></td></tr><tr>Regex expression = new Regex("(?=~).*(?=</b></td><)");
Match result = expression.Match(s);
I want to grab that 81 but the above regex code giving me ~81 how can grab only 81.
Thanks


