Using PCRE to check regexps passed to Apache