On Tue, 2005-11-15 at 08:20 -0500, Che Sosa wrote: > Thank you Dominique, > > Anyone who can help. I want to delete the part > > starting from <div class="header" > up to edit</a>]</div> > > <div class="header" style="float:right;margin-left:5px;">[<a > href="http://www.yourname.com/sub/index.php?title=my_Interface&action=edit§ion=2" > title="My Interface">edit</a>]</div><a name="Writing_legibly"></a><h2> > Writing legibly</h2> > > using a Perl one-liner
Try this (NOT YET TESTED) regex: /<div class="header"[.|\n]*?<\/a>\]<\/div>//; The command will be: perl -p -i.bak -e 's/<div class="header"[.|\n]*?<\/a>\]<\/div>//' *.txt Just restore your files from the backups if it's wrong HTH -- eman http://www.bloodpet.tk/ || http://www.bloodpet.dsl.ph/ gpg --keyserver pgp.mit.edu --recv-keys 4C683E4C Registered Linux User #287022 +63(2)455-3222 Books just wanna be FREE! See what I mean at: http://bookcrossing.com/friend/bloodpet
signature.asc
Description: This is a digitally signed message part
smime.p7s
Description: S/MIME cryptographic signature
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

