« Return to Thread: The easiest way to separate substrings from a line string

Re: The easiest way to separate substrings from a line string

by Thriving K. :: Rate this Message:

Reply to Author | View in Thread

David A. Black wrote:

> Hi --
>
> On Thu, 9 Jul 2009, Sarawut Poaitwinyu wrote:
>
>> or not, and then cut the part, but i thought it might have easier way
>> that i don't know
>
>    words = string.split
>
> When you call split with no argument, it splits on whitespace
> (including more than one character).
>
>
> David



       Thank you , i will try
--
Posted via http://www.ruby-forum.com/.

 « Return to Thread: The easiest way to separate substrings from a line string