// match any content
/[\s\S]*?/
// match all start and end occurances of '/' character
/(^\/+|\/+$)/g
// @example - remove slashes of url
"/some/url/segments/".replace(/(^\/+|\/+$)/g, ""); // outputs => 'some/url/segments'
// search replace wrapping
d="(.+?)"
$1
id="(.+?)"
id={`$1_${uid}`}
href="(.+?)"
href={`$1_${uid}`}
"url\((.+?)\)"
{`url($1_${uid})`}