This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0 1.1.0

FormValidator.Patterns

The Form Validator regular expression patterns.

blank : Regex.Regex

Answer regular expression for blank string.

email : Regex.Regex

Answer regular expression for email address.

module FormValidator.Patterns exposing
  (
    blank,
    email
  )

{-|

The Form Validator regular expression patterns.

@docs blank, email

-}

import Regex

{-| Answer regular expression for blank string. -}
blank : Regex.Regex
blank =
  Regex.regex "^\\s*$"

{-| Answer regular expression for email address. -}
email : Regex.Regex
email =
  Regex.regex "^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"
    |> Regex.caseInsensitive