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

Predicate Impl::matchesAnyPrefix

Holds if the regex that term is part of is used in a way that ignores any leading prefix of the input it’s matched against. Not yet implemented for Python.

Import path

import semmle.python.regexp.RegexTreeView
predicate matchesAnyPrefix(RegExpTerm term)