The purpose of the PPIx-Regexp package is to parse regular expressions in a manner similar to the way the PPI package parses Perl. WWW: http://search.cpan.org/dist/PPIx-Regexp/