|
Hi Paul,
Its giving error for ie.html.scan(/src\s*=\s*'(.*)?') here. Please correct
it.
Thanks,
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers Sent: Saturday, November 04, 2006 9:22 PM To: [email protected] Subject: Re: [Wtr-general] Is there any way to get all the scr's of images? probably easiest to use a reg exp for
this
youd have to create the reg exp with care, as there
may be white space and different types of quotes, but this might do
it
ie.html.scan(/src\s*=\s*'(.*)?')
that says, find src followed by either space or no
space followed by equals followed by a single quote capture the text in the
quote
If you get it to ork correctly, please post it, as
many people may find this useful
Paul
|
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
