Added setRegExp method