^start of string
!the literal ! (3310 / 418 / 2116)
\w+any word character, repeated at least once
:the literal : (5810 / 728 / 3A16)
+matches at least one character from the set below:
\wany word character
-the literal - (4510 / 558 / 2D16)
:the literal : (5810 / 728 / 3A16)
\w+any word character, repeated at least once
$end of string, or before its final line terminator
g modifier: global. Finds all matches instead of stopping after the first
i modifier: insensitive. Matches without distinguishing uppercase and lowercase letters