Accept regexp as the path