setRegex

fun setRegex(regex: String, errorMsg: String = RegexValidator.DEFAULT_ERROR_MSG): VGSInfoRule.ValidationBuilder

Sets the regex for validation.

Parameters

regex

The regex.

errorMsg

The error message to display if validation fails.