JSFiddle - React, Tailwind, and code Playground
by Daniil464
JavaScript
function styleHyphenFormat(propertyName) {
function upperToHyphenLower(match) {return '(' + match + ')';}
return propertyName.replace(/D_([^;]*)sd/g, upperToHyphenLower);}
console.log(styleHyphenFormat('asdasd ASD_ asdD3'));