Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

123
Views
Add Regex to allow Parentheses

I have this regex written in JS that allows only Arabic letters.

const onlyArabicCharacters = function (value) {
    if (!value) return true;
    var ARRegex = /[\u0600-\u06FF\s]/;
    var str = value;
    for (var i = 0; i < value.length; i++) {
        if (!ARRegex.test(value.charAt(i)))
            str = str.replace(value.charAt(i), "");
    }
    if (str.length === value.length) return true;
    return false;
};

I would like to also allow Parentheses.
I tried to add them but it didn't work.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!