in reply to Re^3: How to know that a regexp matched, and get its capture groups?
in thread How to know that a regexp matched, and get its capture groups?

> Because the problem is not easy to grasp normally one knows beforehand if captures are expected.

Very much true. And for the fake captures issue, the callback knows (is written for) the regexp it is attached to, so it simply ignores any arguments passed. So it is a non-issue in practice.

  • Comment on Re^4: How to know that a regexp matched, and get its capture groups?