title: Regex to find anchor tags which are without http or https in the href attribute
body: <p>I have this sample text on which i want to run the regex to pull the anchor tags whose href doesn't contain http|https in the address part. </p>
  
  <p>I was trying with this regex, and it is not complete yet. I am not able to pluck the anchor when they do not start with http or https. </p>
  
  <p>Link to gskinner site - <a href="http://regexr.com?34ev0" rel="nofollow">http://regexr.com?34ev0</a></p>
  
  <pre><code>&lt;a.*?href=[""|'](http|https:\/\/)(?&lt;link&gt;[^""|']*)[""|'].*?&gt;
  </code></pre>
  
  <p>Here is the sample string:-</p>
  
  <pre><code>&lt;br /&gt;&lt;span style="font-size: 16px;"&gt;&lt;strong&gt;&lt;a target="_blank" href="http://www.yahoo.com"&gt;Good Link (Yahoo)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a target="_blank" href="www.bbc.com"&gt;Bad Link (BBC)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="" id="anchorSocialMedia" onclick="ShowModalPopup('anchorSocialMedia','/Events/Popup/SocialMediaShareModal.aspx','650px','500px');"&gt;Share This Event&lt;/a&gt;&lt;br /&gt;Badge Perf Testing&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;
  </code></pre>
  
  <p>Thx.</p>