The $ prefix implies that the match text contains a regular expression.

The / are just delimiters to the match pattern.

^ means the pattern must match at the beginning of the string.

/i means a case insensitive match.