I have this regex. My problem is the two second lines of the code:
<%
content = ""+Request.Form("completehtml")+"";
contentmatch = content;
contentmatch = content.match(/<div class="content">[\s\S]+?#-#/ig);
htstring1 = contentmatch;
htstring2 = htstring1.replace(/#-#/ig, '');
%>
I want to match something and then after everything is matched, remove the #-#
within the match
Is this possible?
I have found this to work:
contentmatch.match(/(<div class="content">[\s\S]+?)(?=[##])/ig);
But I still want to know how to use match and then replace within the math?
Anybody ?