locoboy
locoboy

Reputation: 38960

Regex ruby - searching the strings in an array and downcase them

Hi I have an array of words that I want to do a couple of things to. I want to lowercase each word in the array and I also want to cut off the /n at the end of each string in the array.

How would I do this in ruby if my array was called my_array?

Upvotes: 0

Views: 3534

Answers (1)

Related Questions