generally there's no reason to remove the blank lines in html, apart from just aesthetics.
if you're just trying to remove the <p>number</p> then this should work:
with the replace field empty. also, if you're using back references, which you shouldn't need to here, you should be using \ instead of /. as in, \1, not /1