INCOMPLETE: pcre options handling