
4 Jan
2012
4 Jan
'12
1:18 p.m.
Am 04.01.2012 17:47, schrieb Steve Horne:
On 02/01/2012 11:12, Jon Fairbairn wrote:
max
writes: I want to write a function whose behavior is as follows:
foo "string1\nstring2\r\nstring3\nstring4" = ["string1", "string2\r\nstring3", "string4"]
Note the sequence "\r\n", which is ignored. How can I do this?
Why do you have these (unhealthy) different kinds of line breaks (Unix and Windows style) in your string in the first place? I hope, not by something calling "unlines" (or intercalate "\n") earlier. Cheers Christian