How would this Javascript be written as Autoit Code?
// Replace all doubled-up <BR> tags with <P> tags :
var pattern = new RegExp ("<br/?>[ \r\n\s]*<br/?>", "g");
document.body.innerHTML = document.body.innerHTML.replace(pattern, "</p><p>");
Is what I wrote below, correct?
$HTML = 'paragraph one<br><br>paragraph two<br><br> paragraph 3<br>'
$sResult = StringRegExpReplace($HTML, '<br/?>[ \r\n\s]*<br/?>', '</p><p>')
ConsoleWrite($sResult & @CRLF)
Can someone explain to me precisely what this RegExp does?
How can the RegExp be written so that it works with both <BR> and <br> (lower case)?
Thanks in Advance.