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 » 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
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: 1201
Joined: Mon Jan 31, 2005 5:32 pm
Contact:

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
http://www.abacre.com
support@abacre.com

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests