JSFiddle - React, Tailwind, and code Playground JavaScript alert("The best moth bäth theme is this that yes".match(/\s(th[^\s]*)|^(th[^\s]*)/gi));