Regular Expression To Match Arabic Characters

A regular expression that can be used to match and validate Arabic characters in a string.

/^[\u0621-\u064A]+$/

With Numbers:

Use this regex instead if you’re looking for a Regex to match Arabic characters and 1-9 numbers:

/^[\u0621-\u064A0-9 ]+$/

Or with Arabic numbers.

/^[\u0621-\u064A\u0660-\u0669 ]+$/

Matches:

  • ب
  • ت
  • خ

Non-matches:

  • a
  • 1
  • A

See Also: