The operator ^ matches the left end of a line, and \$matches the right end of a line. The operator ^ is also used to introduce complemented character classes, but the context always makes it clear which meaning is intended. For example, ^ [^aeiou]* \$ matches any complete line that does not contain a lowercase vowel.