Javascript regular expression in Opera

The following Javascript code works in Firefox & Internet Explorer but not in Opera. Different browsers interpret Javascript code differently.

$pTxt = $pTxt.replace(/(.|\n)+<\/tag>/g,'');

This code works in all three.
$pTxt = $pTxt.replace(/[\s\S]+<\/tag>/g,'');


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *