JSFiddle - React, Tailwind, and code Playground by Evgeniy Kvasyuk February 23, 2024 JavaScript const regex = /\b{targetPath}\b/g url.replace(regex, `help/${targetPath}`)