Page 1 of 1
					
				How do I delete everything after a certain line
				Posted: Mon Jan 31, 2005 5:32 pm
				by Guest
				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
			 
			
					
				
				Posted: Mon Jan 31, 2005 5:32 pm
				by Abacre
				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.
			 
			
					
				Thank you Roman
				Posted: Mon Jan 31, 2005 5:32 pm
				by Guest
				Boy that was a fast reply :>)
Thank you Roman