pass regExpOptions
add tests for regexp options