Delete lines of text

D

David G. Smith

I have a document that is over 5000 pages long and I
would like to use the replace command to find a line that
has (REFN: ^#^#^#^#) and then delete each line that has
this pattern. there is about 8000 line that use this
pattern. How can I delete all of then at the same time?
 
J

Jezebel

If the line has nothing else in it, search for REFN: ^#^#^#^#^p and replace
with nothing. The ^p at the end means the paragraph mark.
 
D

DavidG. Smith

The line has nothing else and I need it to delete the
line and then the space also so it was like the line was
never there.
 
G

Graham Mayor

Jezebel's answer is correct if the search pattern is literal text - if the
^#^#^#^# bit represents a number, then what format is that number in.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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