Hello everyone,
A virus infected all .html and .htm files on my HD, by inserting a portion of bad code after the closing </html> tag, in ~20000 files.
I would like to run a search and replace command that deletes everything after the </html> tag.
Would anyone be so kind to indicate a proper formula for doing that, if that's possible using this software.
Thanks a lot!
Remove all content after the closing </html> tag
- DigitalVolcano
- Site Admin
- Posts: 1863
- Joined: Thu Jun 09, 2011 10:04 am
Re: Remove all content after the closing </html> tag
This will remove everything (to the end of the file) after the </html> tag.
Regular expression:
Replace:
Option: "Dot Matches Newline" turned on.
Remember to back up first!
Regular expression:
Code: Select all
</html>.*
Code: Select all
</html>
Remember to back up first!
Re: Remove all content after the closing </html> tag
Perfect! Thank you my friend!