I need to find all matches of pattern in text with names
iex(9)> Regex.named_captures(~r/(?<name>\w)/, "ab")
%{"name" => "a"}
and I expected
[%{"name" => "a"}, %{"name" => "b"}]
Is there some option for named_captures
function to use it globally or option for scan
function to return result with names?