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");
}