Lua-like pattern matching.
string name, fruit; int count; assert("Mary has 5 apples" .matchInto(`^(\w+) has (\d+) (\w+)$`, name, count, fruit)); assert(name == "Mary" && count == 5 && fruit == "apples");
See Implementation
Lua-like pattern matching.