Displaying 1 result from an estimated 1 matches for "onehugewordthatlookslikethis".
2006 Jul 05
2
splitting a paragraph into words and spaces
...print to html only the first 20 items, words and spaces. I
got this (split(/ /)) from the online pickaxe book at
http://rubycentral.com/book/ref_c_string.html#String.split . The problem
is, the resulting array seems to contain no spaces, only words, and
what''s being printed to html is onehugewordthatlookslikethis.
Am I doing something wrong?
--
Posted via http://www.ruby-forum.com/.