I have a problem with regular expressions in PHP.
I have a string: "NAPLAK ROSSO+S.ARG.+LACC.ARG.+NK", all of this words contain options like ROSSO,S.ARG, Are colors ROSSO = Red, s.arg = silver and so on.
Out of this string i need to generate a description like:
Material: Naplak, Color: Red, Silver.... ....
I thought, that there is going to be an array with laguage codes something like this:
$options = array(
"ROSSO" => "COLOR_RED",
"S.ARG" => "COLOR_SILVER"
);
Could you please help me to write a regular expression for this purpose?
Best regargs, RussianRoot.