try see compare understand learn JavaScript Regular Expressions
Assertions

Assertions are the boundaries / anchors, which mark the beginnings and endings of words and texts. The lookaround patterns are also assertions.