title: sed replace base64 encoded images in bulk
body: <p>I'm trying to use sed to recursively find/replace several base64 encoded images from files.</p>
  
  <p>every image embed starts with <code>src="data:image/svg+xml;base64,</code> and ends with <code>+"</code></p>
  
  <p>I've tried this, but couldnt get it to work: <code>find . -type f -name "*.txt" -exec sed -i 's/.*src=\"data\:image\([^;]*\)+\".*/\/path\/to\/image.png/g' {} +</code></p>
  
  <p>I'm pretty new to regex and sed; I'm expecting something wrong with the regex match or escaping.</p>
  
  <p>thanks!</p>