[KongchangAI]
Conceptnegative lookahead / (?!pattern)

Negative Lookahead

A type of zero-width assertion in regular expressions, written as (?!pattern), which asserts that the pattern cannot match at the current position. It consumes no characters itself and is commonly used to exclude specific suffixes.

Timeline (last 90 days)

Oct 15

The negative lookahead /gemini-2\.5(?!-flash-lite)/i can exclude gemini-2.5-flash-lite, but cannot exclude other non-reasoning-by-default variants that appear in the future (such as gemini-2.5-flash-lite-preview).

Unverified50%

All Facts (1)

Source Articles