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,'');

Comments (0)

› No comments yet.

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Pingbacks (0)

› No pingbacks yet.