I need a replace string once function and believe preg_match might be my best bet.
I was using this, but due to the dynamicness of use, sometimes this function behav
You are looking for preg_quote instead of trying to escape the \ yourself (which doesn't take [, + and many others into account):
preg_quote
\
[
+
$return = preg_replace('/'.preg_quote($remove,'/').'/', $replace, $string, 1);