I want to match any instance of [space][slash][space].
ie.
" / "
in a regex pattern.
I can't find the answer anywhere. What have I missed?
function madeby_remove_slash($text) {
preg_replace('/ \/ /', ' ', $text);
return $text;
}
echo madeby_remove_slash('This is the / text');