How to Replace single random line

General discussions about Advanced Find and Replace
Post Reply
digitalmonkeyman
Posts: 4
Joined: Sun Sep 16, 2007 7:35 am

How to Replace single random line

Post by digitalmonkeyman »

Can anyone help me on this one? I need to replace the following, and the name is different in each file;

by: Chris Anderson
or
by: John Martin
or
by: Joe Smith

I would like to replace the
'by: name name'
line in multiple files with a blank line
what paramaters do I use?
Thanks

Abacre
Site Admin
Posts: 1223
Joined: Mon Jan 31, 2005 5:32 pm

Re: How to Replace single random line

Post by Abacre »

Go to Batch replace tab, check on "Use regular expressions".
Put into the grid, search for:
^by: .*$

Replace with:
empty string

That's all I verified it works perfectly.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

Post Reply