Skip to content

Instantly share code, notes, and snippets.

@bekatom
Forked from interisti/Regex.md
Created December 7, 2016 14:23
Show Gist options
  • Save bekatom/eab38ad8ea1867aed51830951840ff74 to your computer and use it in GitHub Desktop.
Save bekatom/eab38ad8ea1867aed51830951840ff74 to your computer and use it in GitHub Desktop.
Regex

Match unicode chars:

[^\u0000-\u007F]

Match nonunicode chars:

[!^\u0000-\u007F]

Match single english or non-english letter or number, including _ :

([^\x00-\x7F]|\w)

Match single english or non-english letter or number, excluding _ :

([^\x00-\x7F]|[a-zA-Z0-9])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment