[pmwiki-devel] changing \n to other delimiter

The Editor editor at fast.st
Tue May 15 11:29:21 CDT 2007

I'm trying to change line breaks in a string to another delimiter but
having a bit of trouble getting the pattern to work right.

I thought I could do

$out = str_replace("\n", "||", $in);


$out = preg_replace('/\\n/', "||", $in);

Both seem to do the replacement, but don't get rid of the line break...

Any help with this would be appreciated...


More information about the pmwiki-devel mailing list