[ale] sed regexp question

Fletch fletch at phydeaux.org
Tue Jul 10 20:28:07 EDT 2001



        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.





More information about the Ale mailing list