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

Member predicate RegExp::getPrefix

Gets the prefix of this regex

Examples:

  • The prefix of 'x*y' is '.
  • The prefix of r'' is r'.
  • The prefix of r"""x*y""" is r""".
string getPrefix()