JSFiddle - React, Tailwind, and code Playground by Pankaj Kargirwar April 24, 2021 JavaScript let regex = new RegExp('^b*') console.log(regex.test('customer-return-items'))