In this guide we’ll examine how to remove all of the vowels from an array in Ruby by leveraging regular expressions.
Build a method that removes the vowels from a Ruby collection.
Given the following array of strings:
['a', 'b', 'c']
Build a method that removes the vowels from a Ruby array.
Real World Usage
There are a number of ways to implement this solution. One of the most efficient is to utilize regular expressions. When it comes to parsing string data, using regular expressions is an important skill to have due to its pattern matching capabilities.
Can be found on the solutions branch on github.