Matching paths