JSFiddle - React, Tailwind, and code Playground
JavaScript
var regex = /^.+$/g
var input = "Hello";
console.log(regex.test(input));
console.log(regex.test(input));
var regex = /^.+$/g
var input = "Hello";
console.log(regex.test(input));
console.log(regex.test(input));