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

Module regex

Import path

import semmle.python.regex

Imports

Predicates

mode_from_node

Gets a regular expression mode flag associated with the given data flow node.

used_as_regex

Holds if s is used as a regex with the re module, with the regex-mode mode (if known). If regex mode is not known, mode will be "None".

Classes

Regex

A StrConst used as a regular expression

RegexString

A StrConst used as a regular expression