Just add 1-9
(in Unicode format) to your character-class:
^[\u0621-\u064A0-9 ]+$
OR add \u0660-\u0669
to the character-class which is the range of Arabic numbers :
^[\u0621-\u064A\u0660-\u0669 ]+$
More Related Contents:
- How do I grep for all non-ASCII characters?
- How to match Cyrillic characters with a regular expression
- (grep) Regex to match non-ASCII characters?
- Use regular expression to match ANY Chinese character in utf-8 encoding
- Unicode Regex; Invalid XML characters
- Regular Expression Match to test for a valid year
- Find numbers after specific text in a string with RegEx
- Does \w match all alphanumeric characters defined in the Unicode standard?
- Is There a Way to Match Any Unicode Alphabetic Character?
- “UnicodeEncodeError: ‘ascii’ codec can’t encode character”
- Greedy vs. Reluctant vs. Possessive Qualifiers
- RegEx: Grabbing values between quotation marks
- Regular Expression to match valid dates
- In regex, match either the end of the string or a specific character
- How to match numbers between X and Y with regexp?
- Regex for Comma delimited list
- What’s the regular expression that matches a square bracket?
- Regular expression search replace in Sublime Text 2
- Phone validation regex
- Regex for alphanumeric, but at least one letter
- Random Text generator based on regex [duplicate]
- Microsoft office Access `LIKE` VS `RegEx`
- Why are there so many different regular expression dialects?
- How to replace a whole line with sed?
- Unix grep regex containing ‘x’ but not containing ‘y’
- What regular expression can never match?
- is there something akin to regEx in applescript, and if not, what’s the alternative?
- Regular Expression Validation For Indian Phone Number and Mobile number
- htaccess force https and redirect www to non-www, but no other subdomains
- Filtering a diff with a regular expression