I know that in Wordpress we can do the following:
preg_match("/\p{Arabic}/u",
get_the_title())
How can we do this in JavaScript? Thanks in advance.
I know that in Wordpress we can do the following:
preg_match("/\p{Arabic}/u",
get_the_title())
How can we do this in JavaScript? Thanks in advance.
You could do this via the Google Language API http://stackoverflow.com/questions/1441562/detect-language-from-string-in-php