Skip to content

Instantly share code, notes, and snippets.

@moritz
Created July 30, 2020 13:06
Show Gist options
  • Save moritz/698e186c9fbe45d2c887998f0bbf7588 to your computer and use it in GitHub Desktop.
Save moritz/698e186c9fbe45d2c887998f0bbf7588 to your computer and use it in GitHub Desktop.
Raku Match.gist output
$ ./rakudo-m -e ' for ("a1a2a3a4a5" ~~ m:g/(a \d)/) { say "match {$++}: ", $_}'
match 0: 「a1」
0 => 「a1」
match 0: 「a2」
0 => 「a2」
match 0: 「a3」
0 => 「a3」
match 0: 「a4」
0 => 「a4」
match 0: 「a5」
0 => 「a5」
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment