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 StackBlitzThis code shows how to search for a pattern and output the capturing groups' indices.
See it on StackBlitz