UnicodeUsernameValidator
This class provides a regex-based validator for usernames that supports Unicode characters. It ensures that a given value contains only letters, numbers, and the specific special characters @, ., +, -, and _. This validator is typically used to enforce format constraints on user identification fields.
Attributes
| Attribute | Type | Description |
|---|---|---|
| regex | regex pattern = r"^[\w.@+-]+\Z" | The regular expression pattern used to validate that the username contains only letters, numbers, and @/./+/-/_ characters. |
| message | string = Enter a valid username. This value may contain only letters, numbers, and @/./+/-/_ characters. | Enter a valid username. This value may contain only letters, numbers, and @/./+/-/_ characters. |
| flags | integer = 0 | The regular expression flags used during the validation process to modify pattern matching behavior. |
Constructor
Signature
def UnicodeUsernameValidator() - > null
Signature
def UnicodeUsernameValidator() - > null