Confusion with usage of parenthesis with regular expression

As per

“… 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.


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