in reply to RegExp substitution
You could always try out Regexp::Debugger.
Update: Corrected module name
--MidLifeXis