I try to match this specific string " et " that contains both whitespaces on each side of the "et" word.
In this simplified code:
$in = "Retour et échange"
$search = array(" et ");
$replace = array("");
$return = preg_replace($search, $replace, $in);
I tried all of these options:
"[ et ]"
"[\set\s]"
"[\s(et)\s]"
" et "
"\set\s"
"\s(et)\s"
"\s[et]\s"
None of them is working!
I would like to have this result:
"Retour échange"