So I'm working with c# win form program and I need it to use Regex.Match method in order to display a certain thing writen on the page.
HTML Of Website
<pre id="code" class="brush: text; plain-text">1</pre>
What i've tried
if (WebBrowserReadyState.Complete == webBrowser1.ReadyState)
{
if (webBrowser1.DocumentText.Contains("brush: text; plain-text"))
{
Match match1 = Regex.Match("class=\"brush: text; plain-text\">(.*?)<", webBrowser1.DocumentText.Replace("\r", "").Replace("\n", ""));
if (match1.Success)
{
String pointsStr = match1.Result("$1").ToString();
label7.Text = pointsStr;
}
}
}
Link to HTML PAGE : https://www.dropbox.com/s/6te2udjz14tutpt/Verison.txt?dl=0
Basically i need it to display 1 in Label7.Text after it is completely loaded the webpage.