Course of Raku / Regexes and grammars / Regexes / Literals and character classes / Exercises
The first non-digit
Problem
Using one of the predefined backslash-prefixed character classes,
write a pattern that matches the first character that is
not a digit in the string '42abc'. Print
the match.
Example
The program prints:
「a」