bagof.validators.strings
Validators for string types (regex patterns, etc.).
Classes
MatchesRegex
Validator for strings that match a regex pattern.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pattern
|
str | Pattern
|
The regex pattern to match against. |
required |
hint
|
Any
|
The type hint to validate against. |
UNSET
|
compose
|
bool
|
Whether to compose this validator with others, when they are
found in |
False
|