Remove everything but...

General discussions about Advanced Find and Replace
Post Reply
Posts: 1
Joined: Thu Jun 08, 2006 9:09 am

Remove everything but...

Post by curb » Thu Jun 08, 2006 9:14 am

I want to remove everything on the html but the form. There are different form actions on each page so I need it to scan:

The begining word needs to be <form and the ending word has to be </form> so it'll also save the words in between also.

<form action="blah>
<input blah blah>


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

Post by Abacre » Wed Jun 28, 2006 6:46 pm

Yes, it's possible to do with Advanced Find and Replace.

Go to main menu - Action - Options - Batch Replace
check "Modifier S"
check "Modifier M"
uncheck "Modifier M"
check "Modifier I"

Go to Batch replace tab, check on "Use regular expressions".
Put two lines (pairs) into the grid,

Search for:

Replace with:

Search for:

Replace with:

That's all I verified it works perfectly.
Kind regards,
Abacre Limited

Posts: 7
Joined: Sun Aug 27, 2006 6:26 am

Post by fr0gman » Sun Aug 27, 2006 6:39 am

This almost seems to be the solution to my questions however I need to remove everything except what is between http:// and .php in about 5000 lines of code...

<br><a href=>Furniture Stores In Islandton Sc South Carolina</a><br>

<br><a href=>Furniture Cross Hill South Carolina</a><br>

<br><a href=>Furniture Stores In Sumter Sc South Carolina</a><br>

Post Reply