JSFiddle - React, Tailwind, and code Playground JavaScript console.log("to: <[email protected]> from: test".replace(/<.*?\>/, 'email'))