A wrapper around PHP regexps