From: Scott Sweeney Date: 2007-12-08T04:00:28+09:00 Subject: Re: how to use split method in ruby >> Thanks in advance.... > > > Well, I'm still very new to Ruby, but I came across something similar > that I needed to do already. Maybe it can help you. If you do the > following: > > news = 'kick the="size" ball="blue"' > news_word_array = news.gsub(/[\"=]/, ' ').split > > It should return all of the words you are asking for in an array and > then you can call and arrange that data in whatever way you see fit. > > Nigama Gah! There's no edit on this forum!!! Oh, right it's also a mailing list. :( Anyway, sorry if I'm sending too many messages, but I made a small error in my code above and wanted to fix it. news = 'kick the="size" ball="blue"' news_word_array = news.gsub(/[\"=]/, ' ').split -- Posted via http://www.ruby-forum.com/.