in reply to Re^4: REGEX for url
in thread REGEX for url

Not able to check it on my machine, but wouldn't a /s be helpful here to be able to pass over the newlines?

print if s/.*a href="(.*)".*/$1/s;