Course of Raku / Regexes and grammars

Regexes

Match and transform text with regexes — literals and character classes, matching, quantifiers, captures, alternations, anchors, assertions, adverbs, and substitution.

  • Literals and character classes — 4 exercises
    • Matching literal text
    • Character classes — 1 quiz
    • Predefined character classes — 1 quiz
  • Matching strings — 3 exercises
    • The smartmatch operator — 1 quiz
    • The match object — 1 quiz
  • Quantifiers — 4 exercises
    • Star, plus, and question mark — 1 quiz
    • The times quantifier
    • Greedy and frugal matching — 1 quiz
  • Captures — 4 exercises
    • Positional captures — 1 quiz
    • Named captures — 1 quiz
    • Non-capturing groups
  • Alternations — 3 exercises
    • Alternation — 1 quiz
    • Longest token and first match — 1 quiz
  • Anchors — 3 exercises
    • Start and end of string — 1 quiz
    • Word boundaries — 1 quiz
  • Lookaround assertions — 3 exercises
    • Lookahead — 1 quiz
    • Lookbehind — 1 quiz
  • Adverbs — 3 exercises
    • Case-insensitive matching — 1 quiz
    • Adverb scope
    • Global matching
    • Significant whitespace — 1 quiz
  • Substitution and replacement — 4 exercises
    • The substitution operator — 1 quiz
    • Captures in the replacement
    • Transliteration — 1 quiz

The Complete Course of the Raku Programming Language

About the course · GitHub

Free and open source · Written by Andrew Shitov · Supported by The Perl & Raku Foundation

© 2021–2026 by Andrew Shitov