I've got something like this:
$class = 'class="cl"' . " style=" . '"color:black,' . "background:red;" . '"';
Is there any simple way by regex to format this code to " ' ' "
style?
I mean this:
$class = "class='cl'" . " style=" . "'color:black," . "background:red;" . "'";
I tried this regex:
'(?!(([^"]"){2})[^"]*$)
But this replaces outer single quotes '
only. How can I also replace inner double quotes by single quotes?