Following are reserved characters and cannot be used to form a validation key in the data-dj-validator attribute :
Character | Description | Example |
& |
Separate validation keys, it is used to place multiple validators to the same field. |
data-dj-validator = “atext,3,12 & word,3,12” |
, |
Separate the parameters of a validation key. |
data-dj-validator = "Text,3,50" |
| |
Separate the values of a multi-value parameter (file, efile) |
data-dj-validator = “efile,jpg|jpeg|png|bmp” |
* |
It omits a parameter allowed by the validation key ( validator reference ). |
data-dj-validator=“atext,5,*” |
° |
It is used with the “regexp” validator, to replace the commas that the regular expression may contain, since the comma is a reserved character, it generates an error. |
data-dj-validator="regexp,^[aeiou]{3°5}$,i" |