title: Regex in Classic ASP VB
body: <p>I just want to match the first instance, could anyone let me know how you would go about doing this?</p>
  
  <pre><code>'RegEx to get Image
  Dim re, matches, Img
  Set re = new RegExp     ' creates the RegExp object
  re.IgnoreCase = true
  re.Global = true
  re.Pattern = "&lt;img.*(.|\n)*?/&gt;"
  Set Matches  = re.Execute(string)
  Img = ""
  
  For each Item in Matches
     Img = Item.Value
  Next
  </code></pre>