Regex Cheat Sheet/Tempered dot

Match any text until a stopper without over-consuming.

Section: Lookarounds

Tempered dot

regex
regex
(?:(?!END).)+
Explanation

Useful when you need to stop before a sentinel substring.

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
Positive lookahead
Require text to follow the current position.
OpenIn sheetregexsame section
Negative lookahead
Require text not to follow the current position.
OpenIn sheetregexsame section
Positive lookbehind
Require text to precede the current position.
OpenIn sheetregexsame section
Negative lookbehind
Require text not to precede the current position.
OpenIn sheetregexsame section
Branch reset group
Reset group numbers per alternation branch.
OpenIn sheetregex1 tag match
Start of string
Match only at the beginning of the input.