Given a very long list of colors, for now let's say 3:
["red", "green", "blue"]
How can I iterate over a string and do the following, match XXXX and return a string for each color type
sentences = Array.new
master_sentence = "This is a XXXX ball"
sa.push("This is a XXXX ball")
Where sentences now contains:
"This is a red ball"
"This is a green ball"
"This is a blue ball"