# Module Regexp

Provides classes for working with regular expressions.

Regular expression literals are represented as an abstract syntax tree of regular expression terms.

## Import path

`semmle.javascript.Regexp`

## Imports

javascript | Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML. |

## Predicates

isInterpretedAsRegExp | Holds if |

## Classes

RegExpAlt | An alternative term, that is, a term of the form |

RegExpBackRef | A back reference, that is, a term of the form |

RegExpCaret | A caret assertion |

RegExpCharEscape | A character escape in a regular expression. |

RegExpCharacterClass | A character class in a regular expression. |

RegExpCharacterClassEscape | A character class escape in a regular expression. |

RegExpCharacterRange | A character range in a character class in a regular expression. |

RegExpConstant | A constant regular expression term, that is, a regular expression term matching a single string. |

RegExpControlEscape | A control character escape in a regular expression. |

RegExpDecimalEscape | A decimal character escape in a regular expression. |

RegExpDollar | A dollar assertion |

RegExpDot | A dot regular expression. |

RegExpEscape | An escaped regular expression term, that is, a regular expression term starting with a backslash. |

RegExpGroup | A grouped regular expression. |

RegExpHexEscape | A hexadecimal character escape in a regular expression. |

RegExpIdentityEscape | An identity escape, that is, an escaped character in a regular expression that just represents itself. |

RegExpLookahead | A zero-width lookahead assertion. |

RegExpLookbehind | A zero-width lookbehind assertion. |

RegExpNegativeLookahead | A negative-lookahead assertion. |

RegExpNegativeLookbehind | A negative-lookbehind assertion. |

RegExpNonWordBoundary | A non-word boundary assertion. |

RegExpNormalChar | A normal character without special meaning in a regular expression. |

RegExpOctalEscape | An octal character escape in a regular expression. |

RegExpOpt | An optional term. |

RegExpParent | An element containing a regular expression term, that is, either a regular expression literal or another regular expression term. |

RegExpParseError | A parse error encountered while processing a regular expression literal. |

RegExpPatternSource | A node whose value may flow to a position where it is interpreted as a part of a regular expression. |

RegExpPlus | A plus-quantified term. |

RegExpPositiveLookahead | A positive-lookahead assertion. |

RegExpPositiveLookbehind | A positive-lookbehind assertion. |

RegExpQuantifier | A quantified regular expression term. |

RegExpRange | A range-quantified term |

RegExpSequence | A sequence term. |

RegExpStar | A star-quantified term. |

RegExpSubPattern | A zero-width lookahead or lookbehind assertion. |

RegExpTerm | A regular expression term, that is, a syntactic part of a regular expression literal. |

RegExpUnicodeEscape | A unicode character escape in a regular expression. |

RegExpUnicodePropertyEscape | A Unicode property escape in a regular expression. |

RegExpWordBoundary | A word boundary assertion. |

## Modules

RegExpPatterns | Provides regular expression patterns. |