title: Get href value from a variable
body: <p>I have been trying to take out the <strong>href</strong> value from a variable which contains a link.</p>
  
  <p>This is my variable which contains a link.</p>
  
  <pre><code>var mylink = "&lt;a href='#!takethisout'&gt;&lt;img src='http://google.com/'&gt;&lt;/a&gt;"
  </code></pre>
  
  <p>I tried to get the value   <strong>#!takethisout</strong> , and I also googled it but there are bunch of pages with how to get the href value from a real link.</p>
  
  <p>Is this possible? Thanks.</p>