Dup Goto 📝

JsRegExp

PT2/aw/lang/js 07-31 13:46:40
To Pop
8 lines, 45 words, 382 chars Monday 2023-07-31 13:46:40

See this at mozilla

Case Insensitive

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