Please see the image:

What regex would delete all line endings only from non-blank lines (not deleting them from blank lines? This is from a text file of over 8000 lines.
64-bit Vista.
|
Please see the image:
What regex would delete all line endings only from non-blank lines (not deleting them from blank lines? This is from a text file of over 8000 lines. 64-bit Vista.
| ||||
|
feedback
|
|
My messy method would be to open it in word, do a find and replace on ^p^p (two end paragraphs in a row) with some character not used in the file, like "|". Then I would replace all ^p with just a space. Then I would go back and replace t he "|" with ^p. | |||
|
feedback
|
|
If you're trying to convert paragraphs that have line breaks at the end of each line to continuous text within each paragraph:
into
Then something like this should work:
or
| |||
|
feedback
|
|
It kind of depends on what regex package you have, whether you have lookahead or not. I'd personally do: -- remove trailing whitespace, this makes sure that 'blank' lines are \n\n
-- if it's a singular linefeed, substitute
it really depends on your regex package | |||
|
feedback
|