Advanced path pattern matching
