I am trying to replace one string within another:
[A]This is a [A]sample
I am trying :
$line2 = preg_replace("[A]","",$line); and every other escape sequence I can think of, but I am not able to get rid of the string.
Help?
Thanks Joe
Try:
$line2 = preg_replace('/[A]/',"",$line);
Diego