Course of Raku / Regexes and grammars / Regexes / Literals and character classes / Exercises
Match a phrase
Problem
Write a program that finds the literal phrase love Raku
— including the space between the two words — inside the string
'I love Raku', and prints the match. Remember that a space
in a regex is ignored unless you quote it.
Example
The program prints:
「love Raku」