Replacing multiple returns with one

D

Dunazee

Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel Hi there--I have a very long document that is a listing of names/phones/addresses. After each entry is 4 returns. I'd like to strip these out and have only one return after each entry.

Is there a way to do this? There are thousands of entries, so it would be a huge time-saver.

Thanks--d
 
C

CyberTaz

Use Edit> Replace, enter ^p^p^p in the Find What field & don't put anything
in the Replace With field, then click Replace All.

HTH |:>)
Bob Jones
[MVP] Office:Mac
 
M

macropod

Hi Bob,

A more flexible Find string is:
^13{2,}
with the 'use wildcards' option checked. That way, it doesn't matter how many 'extra' returns there are - they'll all be replaced
with just one return.

--
Cheers
macropod
[Microsoft MVP - Word]
 
C

CyberTaz

Quite nifty -- I've made a note of it. Thanks!

Regards |:>)
Bob Jones
[MVP] Office:Mac
 
M

Michel Bintener

Just an add-on for European users: depending on which decimal symbols you
use (if you use "," instead of "."), using "{2,}" in macropod's answer won't
work. Use "{2;}" instead (i.e. replace the comma with a semi-colon).
 

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