This is an understanding question since I am already using the more efficient str_replace to accomplish my task, BUT:
I am confused about how do do an
str_replace("\", "\\", $myStr) using preg_replace.
None of my variants on
preg_replace ("/\\/", "\\", $myStr) and
preg_replace ("/[\\]/", "\\", $myStr)
seem to work for me.
Csaba Gabor