MatchByPrefix extension