Thread
:
I need advanced search and replace technique and short icq
View Single Post
01-08-2005, 09:39 PM
rickholio
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
Shame you're not using some variety of unix... a simple regex would cover it:
sed 's/<!--.*blah.*-->/<!-- foo -->/g' < oldfile.html > newfile.html
Guess it's a little more complex in other OSes.
rickholio
View Public Profile
Visit rickholio's homepage!
Find More Posts by rickholio