Correct previous paths regex