Perl-like utility functions using the PCRE library