Since it match the `^` or `$`, the word is either the first or last word, they act as word boundaries.