JSFiddle - React, Tailwind, and code Playground
by btipling
JavaScript
var text = "bar foo bar foo bar", regexp = /(foo) bar \1/g;
console.log(text.match(regexp));
by btipling
var text = "bar foo bar foo bar", regexp = /(foo) bar \1/g;
console.log(text.match(regexp));