On Tue, 30 Dec 2003 11:05:01 -0600 Andrew Gaffney
<[EMAIL PROTECTED]> wrote:
| I've been trying to piece together a Perl regex that will work, but I
| can't seem to get it to. I've tried:
| 
| perl -pi -e 's/ width="51"\n        height="20"//' *.html
| perl -pi -e 's/ width="51"\n\s+height="20"//' *.html
| perl -pi -e 's/ width="51".*\s+height="20"//scg' *.html
| 
| and a few other variations. None of them work right.

Yeah, 'cos $_ only contains one line of text at a time. $/ is your
friend.

-- 
Ciaran McCreesh
Mail:    ciaranm at gentoo.org
Web:     http://dev.gentoo.org/~ciaranm

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to