when current path is equal to matched pre-path, reset regexp