I am trying to replace string A (contains pipes) with string B (which also contains pipes). String A is part of string C.
$out = ereg_replace($str_a, $str_b, $str_c);
but this returns:
Warning: REG_EMPTY in that line as the pipes are most probably interpreted as part of the regular expression. How can I force it to escape all special characters and just replace one string with the other?
Thanks!