in reply to Equivalent of grok in perl

This would seem to be basically what regular expressions are in Perl. See also perlretut I guess.