I have a string like this :
این یafsک رشsegته می y34باشد
Specially , i want a function (like regex) to echo out JUST persian chars.
So , the out put should be :
این یک رشته می باشد
I have found we can use below regex, but i can't use it with function, it does not work.
regex i tried:
preg_match("(^[\x{0600}-\x{06FF}]*$)", $title);
error : Compilation failed: character value in \x{} or \o{} is too large at offset
What can i do and what should i do ?
Tnx.