Regular Expression To Match Non-ASCII Characters

A regular expression to match characters that are not contained in the ASCII character set (like Chinese, Japanese, Arabic, etc).

/[^\x00-\x7F]+/

Matches:

  • こんにちは世界
  • 你好世界
  • 헬로월드

Non-matches:

  • Any ASCII character

See Also: