title: Replace with regular expression in powershell script not working
body: <p>I am trying to remove all the comments from JSON file using regular expression with following pattern: </p>
  
  <pre><code>$mytext="{/* anytext */  'name':'myname'}"
  $mytext -replace /\/\*.+?\*\/|\/\/.*(?=[\n\r])/g,''
  </code></pre>
  
  <p>The expression is working fine in JavaScript, but not in PowerShell.</p>