title: Powershell regex to match string except first one
body: <p>I have following html patterns. </p>
  
  <pre><code>href="{{url}}" class="item-name prdctNm"&gt;{{name}}&lt;/a&gt;&lt;div&gt;
  href="/drugs/sporanox-100-mg-33294" class="item-name prdctNm"&gt;Sporanox (100 Mg)&lt;/a&gt;
  href="/drugs/sporan-200-mg-34240" class="item-name prdctNm"&gt;Sporan (200 Mg)&lt;/a&gt;
  href="/drugs/spornid-500-mg-25051" class="item-name prdctNm"&gt;Spornid (500 Mg)&lt;/a&gt;
  </code></pre>
  
  <p>What I want is to get name of products like </p>
  
  <blockquote>
    <p><code>Sporanox (100mg), Sporan (200 mg) and Spornid (50mg).</code></p>
  </blockquote>
  
  <p>**</p>
  
  <blockquote>
    <p>Updated Solution</p>
  </blockquote>
  
  <p>** : it matches almost whole of page. Starting from <code>first instance of</code> <code>"item-name prdctNm"</code> to <code>last &lt;\a&gt;</code> on page - it matches everything in between. However, I need to match <code>text between "item-name prdctNm" and tag &lt;\a&gt;</code> next to it.</p>
  
  <p>Now it works perfectly :</p>
  
  <pre><code>$regex = [RegEx]'"item-name prdctNm"(.[^{}&lt;&gt;]*)&lt;/a&gt;'
  $url = ‘https://www.xxx.com/search/all?name=sporanox’
  $wc = New-Object System.Net.WebClient
  $content = $wc.DownloadString($url)
  $regex.Matches($content) | ForEach-Object { $_.Groups[1].Value }
  </code></pre>