title: replace string doesn't work well
body: <pre><code>var base64Data = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ'
  
  var base64ImageContent = base64Data.replace(/^data:image\/(png|jpg);base64,/, "");
  
  console.log(base64ImageContent) &lt;-- still the same
  </code></pre>
  
  <p>What's wrong here? replace doesn't work here, where is my mistake?</p>