Newb N. wrote:
Pls Any one Help…
what is the regular expressions to Extract the image url which contains
png .gif .jpg file extensions.
To Extract the file Name from the image url what Regular Expressions
has to Be Used.
Nothing Found to Be working.I m Still On the Confusion.
You have asked this question before; this might make some here concerned
won’t use the answers already provided.
Your best bet has always been Hpricot, to find, store, and
erase the image sources. You already posted a solution with
The step to store the images would be something like this:
doc.search("//img").each do |img|
A further regexp using /.jpg$/ would match strings with .jpg on the end,
warned there are many variations of image filenames, including, for
Please post back what you did with this advice (if anything!), instead
continuing to ask the same question over and over again!