Handbook
Glossary
v-email ( str -- str )
Form validators
Prev:
v-checkbox ( str -- ? )
Next:
v-url ( str -- str )
Vocabulary
validators
Inputs
str
a
string
Outputs
str
a
string
Word description
Throws a validation error if the string is not a valid e-mail address, as determined by a regular expression.
Definition
IN:
validators
:
v-email
( str -- str )
320
v-max-length
"e-mail"
R/ [A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}/i
v-regexp
;