title: String.replace() not working, even though the same regex does in other langs?
body: <p>I have a textarea element which contains text in this form:</p>
  
  <pre><code> 215
   00:10:38,810 --&gt; 00:10:40,040
   [ROBIN LAUGHING]
  
   216
   00:10:40,370 --&gt; 00:10:41,330
   [ALL SCREAMING]
  </code></pre>
  
  <p>I take that text and run <code>replace(/^[\d\s-:,&gt;]+$/g, '');</code> on it, and then console.log the result. But I see the unchanged result instead of any change.</p>
  
  <p>I have tried the same regex on the same text using Ruby' <code>String#gsub</code> method and it does exactly what I want it to. I'm a little confused as to what JavaScript is doing differently. </p>