Type Alias: RegexValidationOptions
type RegexValidationOptions = {
flags?: string;
message?: string;
pattern: string | RegExp;
type: Matches;
};
Properties
| Property | Type | Description |
|---|---|---|
flags? |
string |
- |
message? |
string |
The message to display if the response fails validation. If unspecified, displays a generic message. |
pattern |
string | RegExp |
- |
type |
Matches |
Validates that a string matches a regular expression. Pattern can be specified as a RegExp or a string with flags. |