Skip to content

Instantly share code, notes, and snippets.

@mattantonelli
Created June 10, 2021 14:32
Show Gist options
  • Select an option

  • Save mattantonelli/65a03be3cbc62eacaf9b9de4bb49c3bb to your computer and use it in GitHub Desktop.

Select an option

Save mattantonelli/65a03be3cbc62eacaf9b9de4bb49c3bb to your computer and use it in GitHub Desktop.
Multilingual regex stuff (works in Ruby)
Alphabetical
\A[\p{L}]+\z
Alphabetical (with spaces)
\A[\p{L} ]+\z
Alphanumeric
\A[\p{L}\p{N}]+\z
Alphanumeric (with spaces)
\A[\p{L}\p{N} ]+\z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment