JSFiddle - React, Tailwind, and code Playground by kobi October 20, 2010 JavaScript var s = "HeLLo World"; alert(s.replace(/hello/i, '<$&>'));