code:
<div id="start">
<p>"hi split html string"<p><br>"now"
<img class="image1" src="some src" master_src="some src" master_w="400" master_h="320">
"second tag is coming"<br><img class="image2" src="some src" master_src="some src" master_w="400" master_h="320"><h1>end here</h1>
</div>
output:
<p>"hi split html string"<p><br>"now" , "second tag is coming"<br> , <h1>end here</h1>
How can i achieve this ouput? what could be regex expression fot this image class in order to use split function(or any better way)?Please give me a demo