I have several thousand html files that need to be changed. I need to delete everything after:
"<!-- INSERT REPLIES -->"
Is there a way to do that?
Thank you
How do I delete everything after a certain line
Hi,
It's simply.
Search for:
"<!-- INSERT REPLIES -->".*\Z
Replace with:
put nothing in it. or "<!-- INSERT REPLIES -->" if you want to keep
"<!-- INSERT REPLIES -->" in resulting file.
BTW I guess you need it without double quotes:
Search for:
<!-- INSERT REPLIES -->.*\Z
So:
.* means any char.
\Z is end of file.
BTW, modifier S should be ON, M is ON, G is OFF.
I tested r.e. above it works perfectly.
It's simply.
Search for:
"<!-- INSERT REPLIES -->".*\Z
Replace with:
put nothing in it. or "<!-- INSERT REPLIES -->" if you want to keep
"<!-- INSERT REPLIES -->" in resulting file.
BTW I guess you need it without double quotes:
Search for:
<!-- INSERT REPLIES -->.*\Z
So:
.* means any char.
\Z is end of file.
BTW, modifier S should be ON, M is ON, G is OFF.
I tested r.e. above it works perfectly.