Would to remove rogue carriage returns (It don't belong there)

S

Steve

I have a very large document I need to edit.
The problem is carriage return appears mid sentence in some cases.
How do I remove only the carriage returns that appear after only 1
word in the line.
In the example below ^13 after the *and* & *taken* would need
removal.

Thanks
Steve


*** Beging Example Text
The laws relating to investment, taxation, benefits, and
the handling of money are constantly changing and are
often subject to changes in government policy. Whilst
every care has been taken to ensure the
accuracy of the material contained herein at the time of publication
(^13)
*and*
presentation, neither the author, presenter, promoters nor the
publishers will bear any responsibility or liability for any
action(^13)
*taken*
by any person, persons or organisations on the purported basis of
information contained in this book.
*** End Example text
 
B

Beeler

If that site doesn't answer it for you, you might try wildcards and variables.
What I've done in the past is find some of the rogue paragraphs by either
inserting a random character combination around the paragraph semi-manually
then replacing that text with what I want automatically. or if you know that
the carriage returns are always surrounded by a certain set of characters you
can do the wild card searches. For example:

[A-Za-Z0-9]^13[A-Za-z0-9] This finds returns marks between any letter or
number
_^13_ finds a carriage return between spaces (replace _ with the spacebar)
or you could combine the two as below:
[A-Za-Z0-9] ^13 [A-Za-z0-9] (space on either side of the ^13)

You can also add other characters or symbols to help or utilize a not
function.
If the carriage return appears always after one word in a line something
like this might be what you are looking for (substitute _ for space bar):
_[A-Za-Z]*[a-z]^13

I might even use a replace with grouping as:
In the find box: (_[A-Za-Z]*[a-z])(^13)
In the Replace box: \1

This probably won't find words that are two letters(ie. at, a, an, etc.),
but you could probably remove those few by hand or use a different search to
help you.

ps. make sure wildcards is checked under options
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top