Class Impl::RegExpEscape
An escaped regular expression term, that is, a regular expression term starting with a backslash, which is not a backreference.
Example:
\.
\w
Import path
import semmle.python.regexp.RegexTreeView
Direct supertypes
Indirect supertypes
Known direct subtypes
Inherited fields
end | from RegExpTerm | |
re | from RegExpTerm | |
start | from RegExpTerm |
Predicates
getPrimaryQLClass | Gets the primary QL class for this term. |
getUnescaped | Gets the part of the term following the escape character. That is e.g. “w” if the term is “\w”. |
getValue | Gets the name of the escaped; for example, |
isIdentityEscape | Holds if this terms name is given by the part following the escape character. |
Inherited predicates
getAChild | Gets a child term . | from RegExpParent |
getChild | Gets the | from RegExpNormalChar |
getEnd | Gets the offset at which this term ends. | from RegExpTerm |
getFile | Gets the file in which this term is found. | from RegExpTerm |
getLastChild | Gets the last child term of this element. | from RegExpParent |
getLiteral | Gets the string literal in which this term is found. | from RegExpTerm |
getLocation | Gets the location of the surrounding regex, as locations inside the regex do not exist. To get location information corresponding to the term inside the regex, use | from RegExpTerm |
getNumChild | Gets the number of child terms. | from RegExpParent |
getParent | Gets the parent term of this regular expression term, or the regular expression literal if this is the root term. | from RegExpTerm |
getPart | Gets the | from RegExpTerm |
getPredecessor | Gets the regular expression term that is matched (textually) before this one, if any. | from RegExpTerm |
getRawValue | Gets the raw source text of this term. | from RegExpTerm |
getRegex | Gets the associated regex. | from RegExpTerm |
getRootTerm | Gets the outermost term of this regular expression. | from RegExpTerm |
getStart | Gets the offset at which this term starts. | from RegExpTerm |
getSuccessor | Gets the regular expression term that is matched (textually) after this one, if any. | from RegExpTerm |
hasLocationInfo | Holds if this term is found at the specified location offsets. | from RegExpTerm |
isCharacter | Holds if this constant represents a valid Unicode character (as opposed to a surrogate code point that does not correspond to a character by itself.) | from RegExpNormalChar |
isRootTerm | Holds if this is the root term of a regular expression. | from RegExpTerm |
isUsedAsRegExp | Holds if this term is part of a string literal that is interpreted as a regular expression. | from RegExpTerm |
toString | Gets a textual representation of this element. | from RegExpTerm |