Another approach which would work in your case is to do it in two steps -- first remove
width="51" then remove height="20" On Tue, 30 Dec 2003, Andrew Gaffney wrote: > Andrew Gaffney wrote: > > Andrew Gaffney wrote: > > > >> I need to strip out the string ' width="51" height="20"' from about 50 > >> HTML documents. Is there a simple way to do this with a bash/sed or > >> perl one-liner? > > > > > > Nevermind, from google'ing, I was able to fine: > > > > perl -pi -e 's/ width="51" height="20"//' *.html > > Although, there is one case this doesn't work for. In some of the HTML files, the > text I'm > looking to strip is split over 2 lines like: > > <a href="someurl"><img src="button.gif" border="0" width="51" > height="20"></a> > > How would I strip the text in this case? > > -- > Andrew Gaffney > > > -- > [EMAIL PROTECTED] mailing list > -- [EMAIL PROTECTED] mailing list