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

165
Views
Check matching text in javascript

Check the jquery code bellow. I want to itarate though list of text from array successMessage and find if there any match in pageHtml variable. If u check there already a matching world message but console.log(match) always returning null. Whats wrong i am doing here? JsFiddle

    const successMessage = [
      "お名前",
      "another success message"
    ];
  
  jQuery.each(successMessage, function(index, success_msg) {
    //console.log(success_msg);
    var pageHtml = "message";
    var match = pageHtml.match('/'+success_msg+'/gi');
    console.log(match);
  });
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!