Return matching string together with position.
Group matches by file.
Started implementing selection based on new match mechanism.