RegExp Syntax
↔ JS-specific regex syntax
regexp **body**
of RegExp
expression (abc
) inside /abc/
regexp atom
basic building block of RegExp
Flag
optional modifier for RegExp
to config how Assertion behave on patterns
RegExp Literal Notation
Literal JS Syntax to create RegExp
, execute at Compile Time
const re = /pattern/flags;
RegExp Constructor Notation
RegExp Syntax to call RegExp()
to execute RegExp
expression at Runtime
const re = new RegExp(_regExpPattern: RegExp, flags = regExp.flags)
References
Assertion
↔ RegExp Syntax to define boundary of lines/wordsRegExp Constructor Notation
↔ RegExp Syntax to callRegExp()
to executeRegExp
expression at Runtime
const re = new RegExp(_regExpPattern: RegExp, flags = regExp.flags)
Character Class
↔ RegExp Syntax[]
to wrap Class Range or Pattern Character(a|b|c)
↔ RegExp Syntax to Group to alternatives|
delimitQuantifier
↔ RegExp Syntax to express # repetitions to match