How does that differ from what choroba wrote?
In reply to Re^2: Regex: Changing $1 by AnomalousMonk in thread Regex: Changing $1 by packetstormer