sv123 has asked for the wisdom of the Perl Monks concerning the following question:
So I have some html I need to extract the IMG from. An example would be something like;
It's the text inside the first "src=" I'm interested in. I tried something like;<p><a href='/blah.html' target='_self' style='text-decoration: none;'> +<img id="blah.flv" src="http://WHAT-I-NEED-TO-GR.AB" height="232" wid +th="308" onmouseout='endm("etc"); this.src="http://unimportant.jpg";' + onmouseover='startm("etc","http://etc",".jpg");' border=0></a><br>s +ome text</p>
and variations of that with no luck. Since I have the most luck here asking, well... Here I am! Thanks (yet again!) in advance (:$moo =~ m/src="(.*)"/;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: lovely regexs
by repellent (Priest) on Apr 11, 2009 at 22:38 UTC | |
Re: lovely regexs
by gmargo (Hermit) on Apr 12, 2009 at 00:41 UTC | |
by dsheroh (Monsignor) on Apr 12, 2009 at 22:20 UTC | |
Re: lovely regexs
by CountZero (Bishop) on Apr 12, 2009 at 12:55 UTC | |
Re: lovely regexs
by Cody Pendant (Prior) on Apr 12, 2009 at 23:19 UTC | |
by CountZero (Bishop) on Apr 13, 2009 at 12:54 UTC |
Back to
Seekers of Perl Wisdom