Результаты поиска по запросу "javascript regex match group":

  1. regex - How do you access the matched groups in a JavaScript regular expression? - Stack Overflow

    You can access capturing groups like this: Var myString = "something format_abc"; var myRegexp = /(?:^|\s)format_(.*?)(?:\s|$)/g; var match = myRegexp.exec(myString); console.log(match[1]); // abc. And if there are multiple matches you can iterate over them: Var myString = "something format_abc"...

    stackoverflow.com

  2. JavaScript Regex Global Match Groups - Stack Overflow

    To do this with a regex, you will need to iterate over it with .exec() in order to get multiple matched groups. The g flag with match will only return multiple whole matches, not multiple sub-matches like you wanted.

    stackoverflow.com

  3. regex - Javascript replace with reference to matched group? - Stack Overflow

    • Javascript regex to matched group. 2. set id for each one with jquery.
    • Regular expression to match a line that doesn't contain a word? 850. How do you access the matched groups in a JavaScript regular expression?

    stackoverflow.com

  4. Named capturing groups in JavaScript regex? - Stack Overflow

    • Linked. 0. Regular expression gives invalid group error. 0. Javascript regex equivalent to “(?P<name>…)” in python.
    • 0. Correct Regular Expression match containing optional substrings. 0. Regex JavaScript.

    stackoverflow.com

  5. regex - How to capture an arbitrary number of groups in JavaScript Regexp? - Stack Overflow

    Then run another regex to break that match apart. References. Regular-expressions.info/Repeating a Capturing Group vs Capturing a Repeating Group. Javascript flavor notes. Example.

    stackoverflow.com

  6. JavaScript RegExp Object - Using Regular Expressions with Client Side Scripting

    • Using Regular Expressions with JavaScript. JavaScript's regular expression flavor is part of the ECMA-262 standard for the language.
    • In Internet Explorer and Firefox, $+ inserts the text matched by the highest-numbered capturing group in the regex.

    www.regular-expressions.info

  7. Regex match reverse group in javascript - Stack Overflow

    • Regular expression to match line that doesn't contain a word? 724. How do you access the matched groups in a JavaScript regular expression?
    • 233. Check whether a string matches a regex. 0. Regex and reverse matching group to not matching group.

    stackoverflow.com

  8. regex - JavaScript regexp repeating (sub) group - Stack Overflow

    JavaScript Regex will only return to you the last matched group which is exactly your problem. I had this seem issue a while back: Regex only capturing last instance of capture group in match.

    stackoverflow.com

  9. javascript - capturing group in regex - Stack Overflow

    • Javascript Regex non capturing group returns null. 3. Why capturing group results in double matches regex. -1. Flatten a json datastructure in javascript.
    • How do you access the matched groups in a JavaScript regular expression?

    stackoverflow.com

  10. Scriptular - Javascript Regular Expression Editor

    • Scriptular is a javascript regular expression editor. Inspired by Rubular it gives you a simple way to test javascript regular expressions as you write them.
    • Match Groups

    scriptular.com