- alternative matches must be separated by
|
- to match a word at the end of a line the
$
symbol must be used - to be sure that the word to match is preceded by
:
or by any character.
followed by:
use(?<= )
:sidebar
:namespace:sidebar
:namespace:start
:start
sidebar
or namespace:sidebar
).