in reply to Re: regular expression (blah blah blah)
in thread regular expression

it is fetching the whole img tag
i need only value of src attribute

  • Comment on Re^2: regular expression (blah blah blah)

Replies are listed 'Best First'.
Re^3: regular expression (blah blah blah)
by Corion (Patriarch) on Jan 07, 2013 at 09:36 UTC

    Most likely what Anonymous Monk showed you was not supposed to be the complete regular expression but intended to be used for matching the src attribute only. You will have to apply that hint appropriately.

Re^3: regular expression (blah blah blah)
by Anonymous Monk on Jan 07, 2013 at 09:36 UTC
    Did you try to understand my regex pattern? YAPE::Regex::Explain? Put it in your regex, match up the quotes, delete your stuff, use my stuff
      Although your suggestion makes the REGEX better, the primary problem is that $& contains the entire match, not the first subpattern ($1).