RegEx constructor
RegEx(
- String pattern
Creates an instance of the RegEx validation rule with a specified pattern.
Parameters:
pattern: The regular expression pattern to match against.
Implementation
RegEx(this.pattern) : super.withKey(key);