Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
let myRegExp = /example/ig;
// The flags property
console.log(myRegExp.flags); // "gi"
// The global property
console.log(myRegExp.global); // true
let myRegExp2 = /example/i;
console.log(myRegExp2.global); // false
// The source property
let myRegExp3 = /([A-Z])/g;
console.log(myRegExp3.source); // "([A-Z])"
// The multiline property
let myRegExp4 = /([A-Z])/m;
console.log(myRegExp4.multiline); // true
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
ImpressiveWebspro
0viewers