ultranerds has asked for the wisdom of the Perl Monks concerning the following question:
sub { my $content = $_[0]; $content =~ s|\Q<img src="\E(.*)\Q" />|<span class="large-image-righ +t-landscape"><img src="$1" /></span>|sig; return $content; }
<span class="large-image-right-landscape"><a href="http://www.pokerlis +tings.com/pop-photo?id=the-paper_25140&height=625&width=700" +class="thickbox"><img src="the-truth-about-bad-beat-jackpots_files/th +e-paper-25140.jpg" alt="The Paper!"></a></span> <span> <strong>When you first enter a live poker room, it's hard to miss the display flashing the current size of the bad beat jackpot. But remember: a guaranteed bonus is always worth more than the hope of a jackpot.</strong> </span> <br><br>
style="" class="" text="" width="" height=""
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regex to "wrap" a <span around an image.
by JavaFan (Canon) on Nov 27, 2008 at 11:54 UTC | |
by ultranerds (Hermit) on Nov 27, 2008 at 13:19 UTC | |
Re: Regex to "wrap" a <span around an image.
by wfsp (Abbot) on Nov 27, 2008 at 14:35 UTC | |
by ultranerds (Hermit) on Nov 27, 2008 at 15:01 UTC | |
Re: Regex to "wrap" a <span around an image.
by oko1 (Deacon) on Nov 27, 2008 at 14:37 UTC | |
Re: Regex to "wrap" a <span around an image.
by monarch (Priest) on Nov 27, 2008 at 22:13 UTC | |
by Skeeve (Parson) on Nov 27, 2008 at 22:54 UTC | |
by monarch (Priest) on Dec 01, 2008 at 23:58 UTC | |
by Skeeve (Parson) on Dec 12, 2008 at 23:47 UTC |