title: regular expression on replace method of js not working
body: <p>why this is not working</p>
  
  <pre><code>var value = arr[row][col].replace(new RegExp('"', 'g'),'""');
  </code></pre>
  
  <p><strong>Error :</strong> Webpage error details</p>
  
  <p>User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; Tablet PC 2.0)
  Timestamp: Tue, 10 Apr 2012 11:22:01 UTC</p>
  
  <p>Message: Object doesn't support this property or method
  Line: 1041
  Char: 25
  Code: 0
  URI: <a href="http://example.com/" rel="nofollow">http://example.com/</a>?</p>
  
  <p>Message: Object doesn't support this property or method
  Line: 1041
  Char: 25
  Code: 0
  URI: <a href="http://example.com/" rel="nofollow">http://example.com/</a>?</p>
  
  <p>Message: Object doesn't support this property or method
  Line: 1041
  Char: 25
  Code: 0
  URI: <a href="http://example.com/" rel="nofollow">http://example.com/</a>?</p>
  
  <p><strong>Note:</strong> : Error copied directly from debugger of IE8</p>