Handbook
Glossary
v-url ( str -- str )
Form validators
Prev:
v-email ( str -- str )
Next:
v-username ( str -- str )
Vocabulary
validators
Inputs
str
a
string
Outputs
str
a
string
Word description
Throws an error if the string is not a valid URL, as determined by a regular expression.
Definition
IN:
validators
:
v-url
( str -- str )
"URL"
R/ (?:ftp|http|https):\/\/\S+/
v-regexp
;