CodeQL library for Java/Kotlin
codeql/java-all 2.0.1-dev (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.

Import path

import semmle.code.java.regex.RegexTreeView
predicate matchesAnyPrefix(RegExpTerm term)