Re: Regular expression for extracting hrefs from HTML file

2008-02-04 Thread R (Chandra) Chandrasekhar
Chas. Owens wrote: This is a job for an HTML parser, not a single regex. Thank you for telling me about HTML::Parser, which I will use in future. Gunnar Hjalmarsson wrote: print "$1\n" while $content =~ m|(http://.*?";>)|gis; Thank you for your script (which works!) and most of all for th

Re: Regular expression for extracting hrefs from HTML file

2008-02-03 Thread Gunnar Hjalmarsson
R (Chandra) Chandrasekhar wrote: Dear Folks, I am trying to construct a regular expression to extract strings having the structure http://...";> from HTML files, as part of learning regexes. I have used the script below to do this: -- #!/usr/bin/perl use warnings; use diagnostics;

Re: Regular expression for extracting hrefs from HTML file

2008-02-03 Thread Chas. Owens
On Feb 3, 2008 8:50 AM, R (Chandra) Chandrasekhar <[EMAIL PROTECTED]> wrote: > Dear Folks, > > I am trying to construct a regular expression to extract strings having the > structure > > http://...";> > > from HTML files, as part of learning regexes. I have used the script below to > do > this: sn