Skip to content
🧠 Master React Package Creation — Claim Your Spot

Edit It: Search for a pattern and output the capturing groups' indices

Home>exec() JavaScript RegExp Method>Edit It: Search for a pattern and output the capturing groups' indices

Edit It: Search for a pattern and output the capturing groups' indices

This code shows how to search for a pattern and output the capturing groups' indices.

See it on StackBlitz