Working JavaScript Regex
I thought it would be useful.
Regards,
Vin
/* Html2Text */
var bodyText = elementMsg.replace( /(<head>(\n|.)*<\/head>)/i, "");
msgText = bodyText.replace( /(<style>(\n|.)*<\/style>)|(<script>(\n|.)*<\/script>)|(<([^>]+)>)|(<![\s\S]*?--.[ \.\t\n\r]*>)|(\ )|([\r\n]+)/g, " ");
/* Email Validation */
arg.match( /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/))
|