i have following string:
@c24-blue: #005ea8; @c24-green: #737948;
Now i want to replace the definition of @c24-green to #fff.
I have tried it over:
$string = '@c24-blue: #005ea8; @c24-green: #737948;';
$string = preg_replace('/([@c24-green:]) (.*);/', '$1' . ' #fff;', $string);
The result should be:
@c24-blue: #005ea8; @c24-green: #fff;
Is there a solution to get this working?
Regards, Kai