v-email ( str -- str )
Form validators

Prev:v-checkbox ( str -- ? )
Next:v-url ( str -- str )


Vocabulary
validators

Inputs
stra string


Outputs
stra string


Word description
Throws a validation error if the string is not a valid e-mail address, as determined by a regular expression.

Definition

: v-email ( str -- str )
320 v-max-length
"e-mail" R/ [A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}/i
v-regexp ;