Example implementation of PHP's PCRE Engine