Parse the regexp string that comes in to pull out the pattern and the flag(s) to be passed to Validator seperately.