I have a string...
I want to replace all of the M chacters with \n characters. This string came from fgetc() 'ing a binary file until the feof().
I've tried:
preg_replace("M", "\n", $line);
preg_replace("^M", "\n", $line);
preg_replace("/^M/", "\n", $line);
The only one that doesn't complain is the third one, but it doesn't work, it just fails...
Any ideas?