Skip to content

Instantly share code, notes, and snippets.

@distancify-oscar
Last active January 15, 2022 22:35
Show Gist options
  • Save distancify-oscar/097e0679f5c4c1e274ad139949fe9ad2 to your computer and use it in GitHub Desktop.
Save distancify-oscar/097e0679f5c4c1e274ad139949fe9ad2 to your computer and use it in GitHub Desktop.
Regex tricks by Oscar
The following Regex matches any letter in any language, and spaces
Great for email / username / name inputs
/[\p{L} ]+/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment