Look at perldoc perldebguts and search for 'regular'.
In reply to Re: Debugging regular expressions by busunsl in thread Debugging regular expressions by larsen