title: How to replace the string enclose in double quote using regex?
body: <p>I have used regex to find and replace the string enclose within double quotes. Below is the regex I have used. Output I got is new is placed before the regex. </p>
  
  <pre><code>int portNum = 5969;
  var input = File.ReadAllText(@"C:\Users\aaa\look.ts");
  var outputFileText = Regex.Replace(input, @"baseurl(\s*)= (\s*).*?", @"baseurl = " + "\"http://localhost:" + portNum + "\"");
  </code></pre>
  
  <p>Output I got is </p>
  
  <pre><code>var baseurl = "http://localhost:5969/""http://www.google.com/";
  </code></pre>
  
  <p>Expected output is </p>
  
  <pre><code>var baseurl= "http://localhost:5969/"
  </code></pre>