Описание тега lookahead
Lookahead is a zero-length assertion used in combinatorial searches and parsing.
Lookahead is a zero-length assertion used for parsing text ahead of the current point. This is frequently used in regex to assert if a match is possible or not. Further explanation in this tutorial.
The term is also used in combinatorial search to determine how deep the graph representing the problem is explored which allows for better control of the search algorithm's time. Wikipedia