#programming/raku #programming/regex

Regex- a pattern for strings /^ start $/ end

Character ClassNegationMatches
\d\DA digit
\w\WA word character (letter, digit, underscore)
\s\SWhitespace, blanks, newlines, etc.
\h\HHorizontal whitespace
\v\VVertical whitespace
\n\NLogical newline (carriage return, line feed)
.Any char
MethodExampleMatches
Enumeration[abc]a, b, or c
Negation-[abc]Anything except a, b, or c
Range[a..c]a, b, or c
*         0..Inf

+         1..Inf

?         0..1

** 3      3

** 1..5   1..5