I want to insert  
between empty paragraph tags.
Input:
1. <div><p></p></div>
2. <div><p style="margin: 0 0 0 0"></p></div>
Expected output:
1. <div><p> </p></div>
2. <div><p style="margin: 0 0 0 0"> </p></div>
I tried to use look behind and forward but apparently I can't use quantifier here: (?<=< p[^>]*>)(?=<\/p>)
Any ideas? My available tools are regex and c#
will also get replaced, i am looking into your second option, what does the $1 $2 do? – SZT Sep 02 '15 at 21:25