title: Regex match a specific string
body: <p>I am trying to extract the string <code>&lt;Num&gt;</code> from within <code>Barcode(_&lt;Num&gt;_).PDF</code> using Regex. I am looking at <a href="http://msdn.microsoft.com/en-us/library/az24scfc%28v=vs.110%29.aspx" rel="nofollow">Regular Expression Language - Quick Reference</a> but it is not easy. Thanks for any help.</p>
  
  <pre><code>    Dim pattern As String = "^Barcode(_+_)\.pdf" 
      If Regex.IsMatch("Barcode(_abc123_).pdf", pattern) Then
          Debug.Print("match")
      End If
  </code></pre>