[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] sed regexp question
- Subject: [ale] sed regexp question
- From: fletch at phydeaux.org (Fletch)
- Date: 10 Jul 2001 20:28:07 -0400
Fanning the flames of the language holy war . . . :)
perl -lne 'print$1while/href="?([^">]+?)"?>/gi' *.html
Of course this doesn't work when you use '' instead of "" as
delimiters, or have >'s embedded in the URL. It also finds URLs which
may actually be commented out. At any rate, this is why to really do
it correctly you should use an HTML parser and just simple regexen.
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
770 933-0600 x211(w) | scary questions." -- Jules =(___)=
| U
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.