In trying to replace parts of a string using a regex.
This is my string
"<p>0</p>
<p>0</p>
<p> </p>
<p>1</p>
<p> </p>
<p> </p>
<p>2</p>
<p> </p>
<p> </p>
<p> </p>
<p>3</p>"
and im doing this
aboveString.replace('/<p>\ <\/p>/g','<br style="clear:both;" />')
I need to replace all instances of the
<p> </p>
to be replaced with
<br style="clear:both;" />
Can you please tell me where am i going wrong?