Course of Raku / Regexes and grammars / Regexes / Matching strings / Exercises

Did it match?

Problem

Write a program that prints True or False (a plain Boolean, not a match object) depending on whether the string 'Hello, World' contains the text World.

Example

The program prints:

True

Solution

See the solution

Course navigation

Quiz — Matching   |   Solution: Did it match?