Test, validate and match regular expressions
This regex identifies duplicate tiers in hierarchical paths using ' > ' notation. It captures path segments and uses backreferences to detect when the same tier appears more than once. It's useful for finding redundancy in classification systems, breadcrumb navigation, or any hierarchical data where repeated elements might indicate errors.