RosettaCodeData/Task/String-matching/Raku/string-matching-2.raku
2023-07-01 13:44:08 -04:00

3 lines
208 B
Raku

so $haystack ~~ /^ $needle / # True if $haystack starts with $needle
so $haystack ~~ / $needle / # True if $haystack contains $needle
so $haystack ~~ / $needle $/ # True if $haystack ends with $needle