JSFiddle - React, Tailwind, and code Playground

JavaScript

var str = "";
var re = /$^/;
alert(re.test(str));