Regex Cheat Sheet/Positive lookahead

Require text to follow the current position.

Section: Lookarounds

Positive lookahead

regex
regex
\w+(?=:)
Explanation

Matches the word before a colon without including the colon.

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
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
Tempered dot
Match any text until a stopper without over-consuming.
OpenIn sheetregexsame section
Start of string
Match only at the beginning of the input.
Digit shorthand
Match one ASCII digit character.