Explanation

590.Remove the Vowels from a String

Easy
Given a string text, return it with every vowel (a, e, i, o, u, in either case) removed. All other characters keep their order. This combines the filtering idea from removing spaces with the vowel test from counting vowels. The second solution introduces regular expressionsRegular ExpressionA compact pattern language for describing text to find or replace, e.g. [aeiou] means "any one of these letters"., a compact way to say "remove anything matching this pattern" that most languages support.

Example 1:

Input: text = "Education"

Output: "dctn"

Example 2:

Input: text = "rhythm"

Output: "rhythm"

+ 4 hidden test cases run on Submit.

Constraints:

  • ●1 ≤ text.length ≤ 1000
  • ●text contains printable ASCII characters

text =

Education