in reply to Search and replace with expansion

s/(\d+)[xX*](\d+)/@{[($1) x $2]}/g;

Replies are listed 'Best First'.
Re^2: Search and replace with expansion
by McA (Priest) on Aug 07, 2014 at 13:13 UTC

    Much nicer, IMHO. Thanks.