Quartz 5

Home

❯

Org-roam

❯

JavaScript RegExp Exec Method

JavaScript RegExp Exec Method

Nov 04, 20201 min read

exec1 returns null if no match was found or an object with information about the match otherwise:

let match = /\d+/.exec("one two 100");
console.log(match);
console.log(match.index);

See also

  • JavaScript RegExp Match Method

Footnotes

Footnotes

  1. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/exec ↩


Graph View

  • See also
  • Footnotes

Backlinks

  • JavaScript RegExp Match Method
  • JavaScript Regular Expressions

Created with Quartz v5.0.0 © 2026

  • GitHub
  • Discord Community