auto p = Pattern("a|bc|one|two three"); assert(p.match("a") == Result(true, "a")); assert(p.match("one") == Result(true, "one")); assert(p.match("two three") == Result(true, "two three")); assert(p.match("cb") == Result(false, null));
See Implementation