I want Regular Expression to accept only Arabic characters, Spaces and Numbers.
Numbers are not required to be in
In PHP, use this:
preg_replace("/\p{Arabic}/u", 'x', 'abc123ابت');// will replace arabic letters with "x".
Note: For \p{Arabic} to match arabic letters, you need to pass u modifier (for unicode) at the end.
\p{Arabic}
u