title: Regex to match specific characters in a string and modify it
body: <p>I am very bad at creating Regular Expression. therefore, thought of asking for help here. I tried googling but was not able to get much out from there. </p>
  
  <p>I have a Json object that I have converted to a string. The result is as below:</p>
  
  <pre><code>{
      "ContainerId": "&lt;script&gt;alert('hi')&lt;/script&gt;&gt;&gt;",
      "AssociateId": "abc22&lt;script&gt;",
      "Header": {
          "ApiVersion": null,
          "JsonWebToken": null,
          "MessageId": "&lt;script&gt;1de11a8e-&lt;/script&gt;b6df-4835-aba0-5d9ea59acf59"
      },
      "StoreNumber": "9913"
  }
  </code></pre>
  
  <p>I actually wanted to encode the values of the Json object. So I thought of using regex to match below value from the json and when value found, replace all next value till the closed double inverted commas. </p>
  
  <p><strong>Value to match :</strong></p>
  
  <p><strong>: "</strong></p>
  
  <p><strong>Example</strong> </p>
  
  <pre><code>"ContainerId": "&lt;script&gt;alert('hi')&lt;/script&gt;&gt;&gt;",
  </code></pre>
  
  <p>I only wanted to encode value here that occur right after <strong>: "</strong></p>
  
  <p>I was successful encoding the value via using Jproperty, but now wanted to do that via Regex. </p>