i have created a onject for string class, like
@news = String.new
and added contents using
@news >> somevalue
“somevalue” includes some alphabets, numbers, even whitespaces, special
now i need to seperate @news based on whitespace like
if @news contains 'kick the ball"
i need out put as, like
same if @ news contains 'kick the=“size” ball=“blue”"
i need to split and output should be like
kick the ball
Some message : size
how to solve this problem using ruby?
Thanks in advance…