(...) // unnamed capturing group(?<name>...) // named capturing group(?:...) // non-capturing group(...|...|...) // alternation\N // match the text in unnamed capture #N.\<name> // match the text in named capture โnameโ.// โญโ#1โโโฎ โญโฎ <--- same as capture #1const regex = /(?:\d{2})(\d{3})\d+\1/;// โฐโโโโโโโโฏ non-capturing group// โญ1โฎ โญ1โฎ 001234004123567// โฐโโโmatchโโโโฏ// โฐโฏ non-capturing group