Only when path is the regular expression, should include the capture.