Page 1 of 1

Delete Form code inside HTML

Posted: Wed Jan 27, 2016 2:25 pm
by funbird
Hi guys,

I despair.

I have to delete same FORM code in nearly 500 HTML files.

Example

Code: Select all

<form method="post" name="newFeedback" id="commentFeedback" action="">
.
.
</form>

<form method="post" name="newComment" id="commentForm" action="">
.
.
</form>

<form method="post" name="newOrder" id="commentOrder" action="">
.
.
</form>

The difficulty is only delete the FORM Code "newComment" and keep the other code.

Any idea ?

Greeting
Kai

Re: Delete Form code inside HTML

Posted: Wed Jan 27, 2016 7:26 pm
by DigitalVolcano
This regular expression just selects the newComment form - is this what you want?

Code: Select all

<form method="post" name="newComment" id="commentForm" action="">.*?</form>
Option = "Dot matches Newline"

you can then replace with nothing.