Course of Raku / Regexes and grammars / Regexes / Literals and character classes / Exercises

A vowel

Problem

Write a pattern with a character class that matches the first vowel (a, e, i, o, or u) in the string 'Hello'. Print the match.

Example

The program prints:

「e」

Solution

See the solution

Course navigation

Solution: A letter or digit   |   Solution: A vowel