title: Getting bad flag in substitute command '/' for sed replacement
body: <p>I am facing one issue while using replace in my sed command. I've a file named <code>a.txt</code>, I want to replace a single line with some other line but I am getting above mentioned error.</p>
  
  <p><strong>Code I want to replace:</strong></p>
  
  <pre><code>DOMAIN_LOCAL = "http://127.0.0.1:3000";
  </code></pre>
  
  <p>I want it to replace with any other ip lets say something like below:-</p>
  
  <pre><code>DOMAIN_LOCAL = "http://127.1.1.2:3000";
  </code></pre>
  
  <p>What I've tried:-</p>
  
  <pre><code>ip=http://127.1.1.2:3000
  sed "s/DOMAIN_LOCAL = .*$/DOMAIN_LOCAL = "$ip";/g" a.txt
  </code></pre>
  
  <p>But it is giving me following error. Can somebody help here.</p>
  
  <pre><code>sed: 1: "s/DOMAIN_LOCAL = .*$/DO ...": bad flag in substitute command: '/'
  </code></pre>