Regular expression negative lookahead

A negative lookahead says, at this position, the following regex can not match. Let’s take a simplified example: The last example is a double negation: it allows b followed by c. The nested negative lookahead becomes a positive lookahead: the c should be present. In each example, only the a is matched. The lookahead is only a condition, and does not add to … Read more