title: JQuery - Remove part of string and keep the rest
body: <p>I'm receiving multiple strings from a API and sometimes I have a string that looks like this.</p>
  
  <pre><code>first part &lt;!-- Slut på Mall: variable --&gt; second part
  </code></pre>
  
  <p>I want to use jQuery to exclude the part before and the "<em>Slut... <strong>variable</strong> --></em>". Leaving me with the second part.</p>
  
  <p>Just to be clear, the variable is dynamic and will change.</p>
  
  <p>I have been playing around with <strong>replace</strong>, and <strong>match</strong> but so far I have failed. I have understood that regex is the way to go</p>
  
  <pre><code>regex = /Mall:.*\s+--&gt;(.*)\z/
  </code></pre>
  
  <p>But I don't know what function to use with that?</p>