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);

or

$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...

Cheers,
Dan

_______________________________________________
pmwiki-devel mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Reply via email to