Require text not to follow the current position.
Section: Lookarounds
Negative lookahead
regex
regex
foo(?!bar)Explanation
Matches `foo` not followed by `bar`.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Lookarounds