return preg_match('/^(\d*\p{Arabic}+*)$/iu', $str);
I’m using the function above in order to match string such as:
– “somewordinArabic”
– “3somewordinArabic” etc
But i want it to match also cases like:
– “3somewordin444Arabic”
– “somethingarabic22”
So basically mixed arabic with numbers, with the exepcetion that at least one letter is in arabic,
Can someone help me?
1 Answer