title: Remove a href tags from a string using regex
body: <p>Hey this may have been asked elsewhere somewhere but i couldnt seen to find it. </p>
  
  <p>Essentially im just trying to remove the a tags from a string using regex in javascript.</p>
  
  <p>So i have this:</p>
  
  <pre><code>&lt;a href="www.google.com"&gt;This is google&lt;/a&gt;
  </code></pre>
  
  <p>and i want the output to just be "this is google".
  How would this be done in javascript using regex?
  Thanks in advance!!</p>
  
  <p>SOLUTION:</p>
  
  <p>Ok so the solution i was provided from my boss goes as follows</p>
  
  <p>The best way to do that is in two parts. One is to remove all  closing tags. Then you’re going to want to focus on removing the opening  tag. Should be as straightforward as:  </p>
  
  <pre><code>/&lt;a\s+.*?&gt;(.*)&lt;\/a&gt;/
  </code></pre>
  
  <p>With the .*? being the non-greedy version of match /anything/</p>