How can I remove lines that only contain spaces when using Eclipse Find/Replace prompt. I checked the "Regular Expression" check box, and tried the following, neither of which worked.
^[:space:]*$
and
^\s*$
This is how the document looks initially when there are blank lines between the text. Just click on the 'Show/Hide ¶' option in Word's control bar to view the paragraph tags. The double paragraph tags here indicate a blank line and replacing them with a single tag will remove the blank lines.
In Windows, a new line is denoted using “\r\n”, sometimes called a Carriage Return and Line Feed, or CRLF. Adding a new line in Java is as simple as including “\n” , “\r”, or “\r\n” at the end of our string.
Find: ^\s*\n
Replace with: (empty)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With