add regular expression options support