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