JSFiddle - React, Tailwind, and code Playground

by Rob Sedgwick

JavaScript

var str = "The best things in life are free";
var patt = new RegExp("e");
var res = patt.test(str);
alert(res);