Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This is a chunk of HTML on the page, I'm just trying to match the /files/images/thumb/(imagename) of the thumbnails and put them in @imagesmy @content = get("$url$cnt"); my $content = join("\n", @content); push(@images, "http://www.imagebeaver.com/files/images/$1:$1") whil +e $content =~ m#/files/images/thumb/([a-zA-Z0-9]+\.jpg)#g;
b>Gallery 115564:</b><br><br><a href="http://www.imagebeaver.com/view. +php?mode=gallery&g=115564&photo=1" target="_blank"><img src="http://w +ww.imagebeaver.com/files/images/thumb/37021412066526319.jpg" border=" +0"></a> <a href="http://www.imagebeaver.com/view.php?mode=gallery&g=1 +15564&photo=2" target="_blank"><img src="http://www.imagebeaver.com/f +iles/images/thumb/99821412066526320.jpg" border="0"></a> <a href="htt +p://www.imagebeaver.com/view.php?mode=gallery&g=115564&photo=3" targe +t="_blank"><img src="http://www.imagebeaver.com/files/images/thumb/62 +341412066526321.jpg" border="0"></a> <a href="http://www.imagebeaver. +com/view.php?mode=gallery&g=115564&photo=4" target="_blank"><img src= +"http://www.imagebeaver.com/files/images/thumb/33641412066526322.jpg" + border="0"></a> <a href="http://www.imagebeaver.com/view.php?mode=ga +llery&g=115564&photo=5" target="_blank"><img src="http://www.imagebea +ver.com/files/images/thumb/5361412066526323.jpg" border="0"></a> <a . . .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex hangs forever
by grep (Monsignor) on Dec 15, 2006 at 03:52 UTC | |
|
Re: regex hangs forever
by Devanchya (Beadle) on Dec 15, 2006 at 04:55 UTC | |
by jettero (Monsignor) on Dec 15, 2006 at 13:55 UTC | |
by jasonk (Parson) on Dec 15, 2006 at 18:32 UTC | |
|
Re: regex hangs forever
by vladdrak (Monk) on Dec 15, 2006 at 05:10 UTC | |
by Anonymous Monk on Dec 15, 2006 at 05:25 UTC | |
|
Re: regex hangs forever
by stonecolddevin (Parson) on Dec 17, 2006 at 00:32 UTC |