How does one MASS strip a line?

  • Thread starter Thread starter Will Smith
  • Start date Start date
There is probably a way to use code, but since I am not
conversant in that language I look for other solutions.
If everything appears just as you have typed, with the
name followed by the address within the <> marks, you
could click Edit > Replace. Click the More button, and
check the box for Use Wildcards. In the Find What box,
type ^13*\<. In the Replace With box, type ^p<. Click
Replace All. You will still need to edit the first line
manually.
This is a wildcard search. You are looking for a
paragraph mark (^13, for some reason), followed by any
number of characters (*), followed by one of these: < .
Since the < has a special meaning in wildcard searches,
the \ in front of it is an instruction to look for the
literal character rather than what it means in the
wildcard search. You are replacing all of this with a
paragraph mark (^p - I couldn't tell you why it is ^13 in
the Find box and ^p in the replace box) and a <. You
don't need the \ because you are replacing, not searching,
and < does not have a special meaning in the Replace end
of the process (although \ apparently does -- this stuff
gets a little murky for me sometimes).
See http://word.mvps.org/faqs/general/UsingWildcards.htm
for more details on wildcards. They can be very useful.
 
Back
Top