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 6759479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:56:49+00:00 2026-05-26T13:56:49+00:00

One of the jQuery Core Style Guidelines indicate: All RegExp operations should be done

  • 0

One of the jQuery Core Style Guidelines indicate:

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

Why is match() not favoured?

  • 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-26T13:56:50+00:00Added an answer on May 26, 2026 at 1:56 pm

    Because .exec is simply a better version of .match

    Let’s see

    var ret1 = string.match(regexp);
    var ret2 = regexp.exec(string);
    

    If regexp is a non global regular expression then the return values are the same.

    However if regexp is a global regular expression (/foo/g) then match just returns an array of matches and that’s it. No extra meta data like exec would return!

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

Sidebar

Related Questions

Using core jQuery, how do you remove all the options of a select box,
Is it possible to have one jQuery ready block executed after all others have
In jQuery, how does one go about finding all the 'unchecked' checked boxes. $(':checkbox:checked');
I am using jquery validation plugin to validate my form. I have one field
How do I make one jquery ui slider control another? If I slide slider
I am trying to use jQuery.one on ajax loaded element. It is working if
Does jQuery - or one of it's plugins - have equivalent functionality to the
I had posted one question earlier jQuery inconsistency in setting readonly attribute in IE-8
I thought there was only one - included in jQuery UI and documented here
I'm trying to use the autocomplete plugin for jQuery (this one http://docs.jquery.com/Plugins/Autocomplete ). My

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.