77
rated 0 times
[
78]
[
1]
/ answers: 1 / hits: 27959
/ 11 Years ago, wed, june 26, 2013, 12:00:00
How can I define a regular expression which solely accept Persian alphabet characters?
I tried the following function, but it doesn't work properly:
function Just_persian(str){
var p=/[پچجحخهعغفقثصضشسیبلاتنمکگوئدذرزطظژؤإأءًٌٍَُِّs]+$/;
if(!str.match(p))
alert(invalid format);
}
More From » regex