Ok, so if you search for "word delete blank lines" you get a lot of stuff but they are mostly talking about the special characters to replace two successive empty paragraphs, i.e. replace ^p^p
with ^p
. And before you ask: no, it doesn't work to replace ^p
with an empty replacement, because ^p
matches a carriage return and not a paragraph (i.e. it will replace all carriage returns in a document, transforming it into one long text).
However, I do have empty lines which are just lines with no text in front of a carriage return: in terms of regular expression I would describe this as
^$
Or in terms of HTML, I'm talking about this:
<p>Some text</p>
<p></p>
<p>some more text</p>
And in vi I would simply delete blank lines. But I cannot export the word, modify text and import, it's using heavy formatting, etc.
Using Microsoft Word 2007.
some text^p^pmoretext
?