CodeQL library for Python
codeql/python-all 2.1.3-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)