title: Regex not working in Firefox, but working in Chrome
body: <p>I have this regex expression:</p>
  
  <pre><code>var message = message.replace(/&lt;a.+?data-pageid=(?:"|')(\d+)(?:"|').+?&lt;\/a&gt;/g, '@[$1]');
  </code></pre>
  
  <p>It works fine for Chrome and cturns this text...</p>
  
  <pre><code>'some text &lt;a contenteditable="false" data-pageid="2"&gt;some more text&lt;/a&gt;'
  </code></pre>
  
  <p>... into this text...</p>
  
  <pre><code>'some text @[2]'
  </code></pre>
  
  <p>However, for Firefox it doesn't work. There's no error notification either. It just seems to "ignore" that regex. Any ideas?</p>