Course of Raku / Regexes and grammars / Regexes / Adverbs / Exercises

Count the matches

Problem

Using global matching, count how many vowels the string 'education' contains, and print the count. Treat a, e, i, o, u as the vowels.

Example

The program prints:

5

Solution

See the solution

Course navigation

Solution: Case-blind match   |   Solution: Count the matches