Dup Ver Goto 📝

RegExp

PT2/lang/js/regex does not exist
To
9 lines, 45 words, 360 chars Page 'RegExp' does not exist.

The mozilla docs

const re = /ab+c/i; // literal notation
// OR
const re = new RegExp("ab+c", "i"); // constructor with string pattern as first argument
// OR
const re = new RegExp(/ab+c/, "i"); // constructor with regular expression literal as first argument