JSFiddle - React, Tailwind, and code Playground

JavaScript

var regex = /a$b*/;
document.write(regex.test('a'));