set Regex
fun setRegex(regex: String, errorMsg: String = RegexValidator.DEFAULT_ERROR_MSG): PersonNameRule.ValidationBuilder
Sets the regex for validation.
Parameters
regex
The regex.
error Msg
The error message to display if validation fails.