JSFiddle - React, Tailwind, and code Playground JavaScript someString = "google dot com"; alert(someString.match(/google(.*)/)[1]);