title: How to Display Value between html tags in Vb.net Form
body: <p>I want to Extract number between font tags from a website in my vb.net form</p>
  
  <pre><code>&lt;html&gt; 
  ...
  When asked enter the code: &lt;font color=blue&gt;24006 &lt;/font&gt;
  ...
  &lt;/html&gt;
  </code></pre>
  
  <p>The 24006 is Auto generated number which Change automatically.</p>
  
  <p>i use:</p>
  
  <pre><code>Dim str As String = New WebClient().DownloadString(("http://www.example.com"))
       Dim pattern = "When asked enter the code: &lt;font color=blue&gt;\d{5,}\s&lt;/font&gt;"
          Dim r = New Regex(pattern, RegexOptions.IgnoreCase)
          Dim m As Match = r.Match(str)
          If m.Success Then
              Label1.Text = "Code" + m.Groups(1).ToString()
              m = m.NextMatch()
  
          Else
              Debug.Print("Failed")
          End If
  </code></pre>
  
  <p>But got Output in Label1:</p>
  
  <p>Code</p>