added replaceRegEx to RegExValidator