Confusion with usage of parenthesis with regular expression

Confusion with usage of parenthesis with regular expression
0

As per https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions

“… For example, (?:\d+) matches one or more numeric characters but does not remember the matched characters…”

I didn’t understand what does it mean by “…but does not remember the matched characters…”

Please explain.

Thanks,
Vikram

On the page you linked, scroll down to Using Parentheses for an explanation of what it means.

Then, scroll down further to Using parenthesized substring matches to see how to use it

1 Like

Thanks for clarification. Sometimes just reading may be clear the concept.

I found this youtube video; in which author has explained this concept much as simple way as possible for newbees of JS