There are probably more elegant solutions, but the following expression should do the trick assuming that the text before and after the page number is also wrapped in paragraph tags:
Find:<p([^>]*)>(.*?)</p>\s*<p[^>]*>\d+</p>\s*<p[^>]*>(.*?)</p>
Replace:<p\1>\2 \3</p>
|