title: Make regex find a text inside tags with line breaks in the content - JavaScript
body: <p>thanks for coming here, so i've got this little code:</p>
  
  <pre><code>while(/\[del\](.*?)\[\/del\]/i.exec(text) != null)
  text = text.replace(/\[del\](.*?)\[\/del\]/i, "&lt;s&gt;$1&lt;/s&gt;");
  </code></pre>
  
  <p>but when there are line breaks, it wont match.
  Example:</p>
  
  <blockquote>
    <p>[del]asdsadasda<br>asdadsadsadsadasdsadsa[/del] - this won't be matched</p>
  </blockquote>
  
  <p>I'm really new to regex, so what I'm doing wrong?</p>