title: Regular Expression
body: <p>I need to extract few values from below string with Powershell Regex.</p>
  
  <pre><code>Request ID = 1234 { andquot;EMOandquot;: andquot;123456-Uandquot;, andquot;Terminated Accountandquot;: andquot;Test Userandquot;, andquot;Descriptionandquot;: andquot;andquot;, andquot;Last Dayandquot;: andquot;2019-06-26andquot;, andquot;Terminated User Mailandquot;: andquot;Test.User@gmail.comandquot; } Location : UK ,London
  </code></pre>
  
  <p>I Need to get Test.User@gmail.com, Test User and 2019-06-26.  Please help me to get powershell regex for getting these values from above string.</p>
  
  <p>Thank you.</p>
  
  <p>I Tried below -</p>
  
  <p>$description = "Request ID = 1234 { andquot;EMOandquot;: andquot;123456-Uandquot;, andquot;Terminated Accountandquot;: andquot;Test Userandquot;, andquot;Descriptionandquot;: andquot;andquot;, andquot;Last Dayandquot;: andquot;2019-06-26andquot;, andquot;Terminated User Mailandquot;: andquot;Test.User@gmail.comandquot; } Location : UK ,London"</p>
  
  <p>$formatdesc = $description -replace ' ?(and)?quot;','"'</p>
  
  <p>$formatdesc
  Request ID = 1234 {"EMO":"123456-U","Terminated Account":"Test User","Description":"","Last Day":"2019-06-26","Terminated User Mail":"Test.User@gmail.com" } Location : UK ,London</p>
  
  <p>With above how would  I have extract Terminated User Mail, Terminated Account and Last Day the values are not static they are dynamic. Please help.</p>