Re: Regexp to match an URL in an HTML <a href=""></a> tag
From: Gunnar Hjalmarsson (noreply_at_gunnar.cc)
Date: 11/15/03
- Previous message: Gunnar Hjalmarsson: "Re: Trying to get Image::Magick to work on a remote server"
- In reply to: Charles Nadeau: "Regexp to match an URL in an HTML <a href=""></a> tag"
- Next in thread: Andy R: "Re: Regexp to match an URL in an HTML <a href=""></a> tag"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 15 Nov 2003 05:29:20 GMT
Charles Nadeau wrote:
> I am trying to craft a regular expression to filter an URL from a
> tag and the one I have doesn't seen right. I use
> the regular expression from this snippet of code:
>
> foreach my $message (@messages)
> {
> my @match=($message->decoded=~/\bhref="(http.*)">.*/gi);
>
> foreach my $match(@match)
> {
> print $match,"\n";
> }
>
> }
>
> but it doesn't lead to results that are exactly what I need.
http://theoryx5.uwinnipeg.ca/CPAN/perl/pod/perlfaq9/How_do_I_extract_URLs.html
-- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl
- Previous message: Gunnar Hjalmarsson: "Re: Trying to get Image::Magick to work on a remote server"
- In reply to: Charles Nadeau: "Regexp to match an URL in an HTML <a href=""></a> tag"
- Next in thread: Andy R: "Re: Regexp to match an URL in an HTML <a href=""></a> tag"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|