How to Replace single random line

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

How to Replace single random line

Post by digitalmonkeyman » Wed Sep 19, 2007 4:01 am

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

by: Chris Anderson
by: John Martin
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?

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

Re: How to Replace single random line

Post by Abacre » Thu Sep 20, 2007 8:11 am

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

Post Reply