CodeQL library for Python
codeql/python-all 2.1.3-dev (changelog, source)
Search

Predicate Make::isInsideChoiceOrSubPattern

Holds if term occurs inside a quantifier or alternative (and thus can not be expected to correspond to a unique match), or as part of a lookaround assertion (which are rarely used for capture groups).

Import path

import codeql.regex.HostnameRegexp
predicate isInsideChoiceOrSubPattern(RegExpTerm term)