Skip to content

Instantly share code, notes, and snippets.

@ahstro
Forked from Chadtech/Alphanumeric.elm
Last active March 10, 2017 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahstro/dff262cb73607d2a57db8e11808a1abb to your computer and use it in GitHub Desktop.
Save ahstro/dff262cb73607d2a57db8e11808a1abb to your computer and use it in GitHub Desktop.
import Regex
alphanumericRegex =
Regex.regex "^[A-Za-z0-9]*$"
allAlphanumeric : String -> Bool
allAlphanumeric =
Regex.contains alphanumericRegex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment