Delete lines of text

  • Thread starter Thread starter David G. Smith
  • Start date Start date
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?
 
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.
 
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.
 
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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Back
Top