Re: Removing all newline characters in a string

2009-02-05 Thread Gunnar Hjalmarsson
Mahurshi Akilla wrote: Is there a simple search and replace command I can do to remove all the newline characters from a string? (besides splitting the string based on \n and then joining the elements) This seems pretty basic but the below commands don't seem to work: s/\\n//g s/\n//g The lat

Removing all newline characters in a string

2009-02-05 Thread Mahurshi Akilla
Is there a simple search and replace command I can do to remove all the newline characters from a string? (besides splitting the string based on \n and then joining the elements) This seems pretty basic but the below commands don't seem to work: s/\\n//g s/\n//g -- To unsubscribe, e-mail: begi