JSFiddle - React, Tailwind, and code Playground

by eget teteete

JavaScript

var pcre11 = /y/g;
pcre11.lastIndex = 3;
var match = pcre11.exec("xyzzy");
console.log(match.index); // 4
console.log(match.lastIndex);