regular expression on replace method of js not working
- by user950146
why this is not working
var value = arr[row][col].replace(new RegExp('"', 'g'),'""');
Error : Webpage error details
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
Message: Object doesn't support this property or method
Line: 1041
Char: 25
Code: 0
URI: http://example.com/?
Message: Object doesn't support this property or method
Line: 1041
Char: 25
Code: 0
URI: http://example.com/?
Message: Object doesn't support this property or method
Line: 1041
Char: 25
Code: 0
URI: http://example.com/?
Note: : Error copied directly from debugger of IE8