I have this string
:
String str = "Displaying bills 1 - 20 of 10000 in total";
And i want to parse the total value, 10000
in this case.
This is what i have try:
Regex regex = new Regex(@"\\d+(?=\\s*in total)");
Match match = regex.Match("Displaying bills 1 - 20 of 10000 in total");
if (match.Success)
{
Console.WriteLine(match.Value);
}
And currently this now succeed.