Skip to content

Instantly share code, notes, and snippets.

@denvazh
Created November 6, 2017 08:10
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 denvazh/04b6f3f3ad16b9cf7eb886308db5ec8a to your computer and use it in GitHub Desktop.
Save denvazh/04b6f3f3ad16b9cf7eb886308db5ec8a to your computer and use it in GitHub Desktop.
Regular expressions

Japanese

match all dashes, English alphanumerics, Japanese katakana, hiragana, multibytes of alphanumerics half-width and full-width

/[一-龠]+|[ぁ-ゔ]+|[ァ-ヴー]+|[a-zA-Z0-9]+|[a-zA-Z0-9]+[々〆〤]+/u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment