0 votes
in React Hooks by
What is CapturingGroup Regular expressions?

1 Answer

0 votes
by

-if you feel portion of the regex using later part of the regex then we use capturing groups.

-its represent with meta characters inside parenthesis and its repetitions represented with  \1 , \2 etc..

- its also called as Backreferencing

   (abcd)(efgh) \1\2 will match abcdefghabcdefgh 

...