Handle patterns with 0 or multiple subexpressions in a RegexCaptureFunction according to the community concensus.