Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 889841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:37:48+00:00 2026-05-15T13:37:48+00:00

jquery says: http://docs.jquery.com/JQuery_Core_Style_Guidelines#RegExp All RegExp operations should be done using .test() and .exec(). string.match()

  • 0

jquery says:
http://docs.jquery.com/JQuery_Core_Style_Guidelines#RegExp

All RegExp operations should be done
using .test() and .exec().
“string”.match() is no longer used.

Why is .match() not recommended?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T13:37:49+00:00Added an answer on May 15, 2026 at 1:37 pm

    A major benefit of exec is that it returns capturing groups. For example:

    var s = "123456789"
    var regex = /.(.)(..)/g;
    

    match:

    s.match(regex);
    > [1234, 5678]
    

    exec:

    regex.exec(s);
    > [1234, 2, 34]
    regex.exec(s);
    > [5678, 6, 78]
    

    Reviewing the coding standards you’ve posted; the document contains many seemingly arbitrary guidelines. Obviously, it aims to achieve mostly consistency, so it is possible exec is preferred because it has more functionality – it has to be used on some occasions, so they might as well use it always.

    On a personal note, I don’t care much for guidelines without explanations, so it’s a good thing you’ve asked. In many cases it leads to dogmatic or superstition-based programming.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 490k
  • Answers 490k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer First of all, it's a really bad idea to use… May 16, 2026 at 9:17 am
  • Editorial Team
    Editorial Team added an answer If you are not dead set on using a listbox,… May 16, 2026 at 9:17 am
  • Editorial Team
    Editorial Team added an answer killproc will terminate programs in the process list which match… May 16, 2026 at 9:17 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Form validation plugin: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Test url: http://docs.jquery.com/Plugins/Validation How to reproduce: 1.) Click on the
I have been trying all afternoon to get the jQuery Sifr Plugin ( http://jquery.thewikies.com/sifr/
I'm trying to load some external content using jQuery load function to div on
OK I have read many posts regarding Dual Licensing using MIT and GPL licenses.
I have a simple form like below that I have added the jQuery validations
Ok, I'm having a slight bit of confusion writing my own jQuery UI widget
I have a simple question related to the jquery Uploadify plugin because I am
I am sending an error response to my jQuery. However, I can not get
Does anyone know whether a DOM Node of type Text is guaranteed not be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.