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

Predicate Impl::isEscapeClass

Holds if term is an escape class representing e.g. \d. clazz is which character class it represents, e.g. ā€œdā€ for \d.

Import path

import semmle.python.regexp.RegexTreeView
predicate isEscapeClass(RegExpTerm term, string clazz)