const arabic_regex = /[u0600-u06FF]/; console.log(arabic_regex.test('أحمد')); console.log(arabic_regex.test('abc'));