Another solution is to also pass group args to check function, which make it possible to distinguish exprs in matched group or not.
Another solution is to also pass group args to check function, which make it possible to distinguish exprs in matched group or not.