regular expression on replace method of js not working

Posted by user950146 on Stack Overflow See other posts from Stack Overflow or by user950146
Published on 2012-04-10T11:25:15Z Indexed on 2012/04/10 11:29 UTC
Read the original article Hit count: 143

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

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about regex