RegExp ↔ regex Global Object to make Regular Expressions in JS
RegExp()
Constructor Function for new RegExp Object
Source: developer.mozilla.org/en
RegExp Syntax
JS-specific regex syntax
References
RegExp()↔ Constructor Function for newRegExpObjectRegExp Literal Notation↔ Literal JS Syntax to createRegExp, execute at Compile Time
const re = /pattern/flags;
regexp atom↔ basic building block ofRegExp\n↔RegExpControl Character Escape for New line feed (LF) character\f↔RegExpControl Character Escape for Form feed (FF) character\r↔RegExpControl Character Escape for carriage Return (CR) character\t↔RegExpControl Character Escape for Tab character\v↔RegExpControl Character Escape for vertical line tabulation\cA↔RegExpArbitrary Character Escape for Ctrl+A\cZ↔RegExpArbitrary Character Escape for Ctrl+ZRegExp Constructor Notation↔ RegExp Syntax to callRegExp()to executeRegExpexpression at Runtime
const re = new RegExp(_regExpPattern: RegExp, flags = regExp.flags)
Flag↔ optional modifier forRegExpto config how Assertion behave on patterns[^abc]↔RegExpNegated Character Class to NOT match charsabcin bracket[0-9]↔RegExpCharacter Class to match digit range from 0-9[A-z]↔RegExpCharacter Class to match letter range (a-z & A-Z)[:punct:]↔RegExpCharacter Class to match punctuation char[:space:]↔RegExpCharacter Class to match space charGroup↔RegExpJS Syntax using()to group togetherRegExpexpressions[:blank:]↔RegExpCharacter Class to match space or tab char^[abc]↔RegExpCharacter Class to match at line start char?↔ OptionalRegExpQuantifier to match never or once*↔ ≥0RegExpQuantifier to match zero or more+↔ ≥1RegExpQuantifier to match 1+.*abc.*↔RegExpQuantifier to match any phrase containsabcbetween anything/nothing{n}↔RegExpQuantifier to match exactlyntimes{n,}↔RegExpQuantifier to matchnor more times^↔RegExpAssertion to negate Character Class or only match start of line{n,m}↔RegExpQuantifier to match betweenn-mtimes.*↔RegExpQuantifier to match anything & everything^n↔RegExpQuantifier to matchnstringat line begin?=n↔RegExpQuantifier to matchstringafternstring?!n↔RegExpQuantifier to matchstringnot afternstring|↔RegExpAssertion OR operator for alternative characters/expressions\b↔RegExpAssertion to match only at boundary of word (beginning or end of word)\B↔ invertedRegExpAssertion to match only at not boundary of word (beginning or end of word)u↔ Flag to setRegExpPattern Character as Unicode\n↔RegExpback ref to numbered Capture GroupMetacharacter↔\ ^ $ . * + ? ( ) [ ] { } |special reservedRegExpcharacter with special (non-literal) meaning to define search criteria/manipulationexcludeStories↔ to set mocked state data as non-story export, viastring[]||RegExpregexp **body**↔ ofRegExpexpression (abc) inside /abc/