A pattern known as a negative lookahead designates a sequence that another stated pattern is not allowed to follow. It permits some patterns to be excluded from the match results.