make sure regex covers entire path, not just portions of it