Hi
I'm new to perl and have a question about regexps that hopefully one of you
can help with.
I'm trying to parse out links from web pages, so essentially I have a string
of the form:
<A href= .................... </A>
So what I want to do is find an expression to match against that.
Secondly, if there is an easy way to put the contents of href="...." into a
variable, that would be most useful too!
I think the expression should look something like (assume string in $str):
if ($str =~ m/\<A\a+\<\/\A\>/ ) { ...}
but then I'm unsure about where the matched text would end up - in $2?
Any help greatly appreciated
Cheers
Tim
- regexp question Martin Weinless
- Re: regexp question Jeff 'japhy' Pinyan
- Re: regexp question Martin Weinless
- Re: regexp question Michael Fowler
- Re: regexp question Peter Scott
- Re: regexp question Pete Emerson
- Re: regexp question Paul
- Re: regexp question Peter Scott
- RE: regexp question Wagner-David
- Re: regexp question Michael.Firestone
- Re: Regexp question Tim Wood
- Re: Regexp question Me
- Re: Regexp question Tim Wood
- Re: Regexp question Me
- Re: Regexp question Brett W. McCoy
- regexp question birgit kellner
- Re: regexp question Martin
- Re: regexp question Jeff 'japhy' Pinyan
- Re: regexp question birgit kellner
- Re: regexp question Jeff 'japhy' Pinyan
