From: "dominique.plante@..." Date: 2006-07-22T06:15:08+09:00 Subject: Re: splitting a string separated by CRLF into array Thanks! (I like your book BTW - I like how it touches on main, Kernel stuff, etc...) I was trying "hello\r\n\world".split('\r\n') and it returned ["hello\r\nworld"] dblack@wobblini.net wrote: > Hi -- > > On Sat, 22 Jul 2006, dominique.plante@gmail.com wrote: > > > How can I get the array > > > > ["hello", "world", "123"] > > > > from the string > > > > "hello\r\nworld\r\n123" > > str.split("\r\n") > > > David > > -- > http://www.rubypowerandlight.com => Ruby/Rails training & consultancy > http://www.manning.com/black => RUBY FOR RAILS (reviewed on > Slashdot, 7/12/2006!) > http://dablog.rubypal.com => D[avid ]A[. ]B[lack's][ Web]log > dblack@wobblini.net => me