View Single Post
Old 01-08-2005, 09:43 PM  
- Jesus Christ -
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
Quote:
Originally Posted by rickholio
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.
Yes I love linux too, but lets not kid ourselves... having a graphical interface to do complicated string replacement makes things a lot easier.

Try using your method to replace a large paragraph of text using regular expressions and variables. its a lot less "complex" to do it with BK replace em.
__________________

Amen
- Jesus Christ - is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote