Javascript Regular Expressions Instance Properties

Description

Javascript Regular Expressions Instance Properties


let myRegexp = /Java(Script)?/g;

console.log(myRegexp.global);  // true
console.log(myRegexp.ignoreCase);  // false
console.log(myRegexp.multiline);  // false
console.log(myRegexp.source);  // "Java(Script)?"



PreviousNext

Related