February 14 - Remove Vowels from an Array in Ruby
In this guide we'll examine how to remove all of the vowels from an array in Ruby by leveraging regular expressions.
Guide Tasks
  • Read Tutorial
  • Watch Guide Video
  • Complete the Exercise
Video locked
This video is viewable to users with a Bottega Bootcamp license

Summary

Build a method that removes the vowels from a Ruby collection.

Exercise Description

Given the following array of strings:

['a', 'b', 'c']

Build a method that removes the vowels from a Ruby array.

Expected Output

['b', 'c']

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.

Test Cases

Code File