JSFiddle - React, Tailwind, and code Playground by Yuriy Petrichenko May 06, 2020 JavaScript const str = 'hello=123;name=dd;'; console.log(str.replace(/(= | )/g , ' '));