CodeQL library for Swift
codeql/swift-all 2.0.4-dev (changelog, source)
Search

Primitive predicate string::regexpCapture

When the given regular expression matches the entire receiver, returns the substring matched by the given capture group (starting at 1). The regex format used is Java’s Pattern.

string regexpCapture(string regexp, int groupNumber)