in reply to Regular Expression Elegance

$value =~ s{(href=')([^']*)(')}{$1.join('',split/<br>/,$2).$3}gsie;
should work perfectly.

Update: changed regex delims.

[]s, HTH, Massa (κς,πμ,πλ)

Replies are listed 'Best First'.
Re^2: Regular Expression Elegance
by monkie (Novice) on Nov 11, 2008 at 14:31 UTC
    .. and it does work perfectly.

    It doesn' suffer from the problem that JavaFan pointed out in my origional either.

    Perfect, now that's Regular Expression Elegance!