title: Javascript - Extract a link from inside an html code
body: <p>I'm trying to extract the link inside href and store it in a variable. Please see my code snippet below. Note that the token id is expected to be different with every single run.
  Thank you for your help.</p>
  <pre><code>const body = &lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;This is SignUp Email with confirmation link&lt;/p&gt;&lt;p&gt;&lt;a href = &quot;http://www.company.com/ls/click?upn=tokenid-11111-22222-333333-444444-555555-xxxxxx&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;
  const activation_link = ???
  console.log(activation_link)
  /*
  The expected result to be printed on Console:
  &quot;http://www.company.com/ls/click?upn=tokenid-11111-22222-333333-444444-555555-xxxxxx&quot;
  */
  </code></pre>