Page 1 of 1

Search and replace segment of text

Posted: Sun Sep 16, 2007 7:48 am
by digitalmonkeyman
I want specfic text removed from about 15,000 files. The text I want removed immediately follows a link, and goes until the end of the document
Example;
http://example.com
blah blah blah blah blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah blah blah blah blah

Written 2007

END

What commands do I use to do this?

Re: Search and replace segment of text

Posted: Tue Oct 09, 2007 9:31 pm
by Abacre
Go to main menu - Action - Options - Batch Replace
check "Modifier S"

Go to Batch replace tab, check on "Use regular expressions".
Put into the grid, search for:
(http://.*)\s.*\Z

Replace with:
$1

That's all I verified it works perfectly.