I recently read about these 2 punctuation, and found it really confusing.
A pattern is a sequence of pattern items. A caret '^' at the beginning of a pattern anchors the match at the beginning of the subject string. A '$' at the end of a pattern anchors the match at the end of the subject string. At other positions, '^' and '$' have no special meaning and represent themselves.(Reference Manual 5.3)
Anchor? what does that mean in this explanation? The match at the end/beginning of the subject string? The Beginning/End of the subject string, what's that?