you have problem if option contain any regexp character. As it is internal function I am fine if you just mention it in documentation for method.