Using PHP Regx, I need to make the user input arabic,english,digits and the following characters(_ and - and space)
user can input string as the following:
10-abc 10-من 10-abcمن _abcمن-10
and so on.
Advice me please.
Using PHP Regx, I need to make the user input arabic,english,digits and the following characters(_ and - and space)
user can input string as the following:
10-abc 10-من 10-abcمن _abcمن-10
and so on.
Advice me please.
the right expression for english, digits and _ and - is ... [a-zA-Z0-9_-]*
(the little trailing minus makes me a little nervous, but it seems to work) ... now you will have to put arabic charaters in there as well (hopefully, this works as a character range, as with english) ... can't help you on that, since i don't know any arab ...
good luck ... ;)