in reply to Regex partial substitution from array

Something like the following untested line might help...

s!(href=\"\./\d+\.html">)(.+)(</a>)!$1.splice(@array, rand(@array), 1) +.$3!ge

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re^2: Regex partial substitution from array
by pseudosocrates (Sexton) on Dec 15, 2004 at 18:35 UTC
    Heh, with the hastily added right-bracket, that works just dandy, thanks a lot :-)