Pattern Match Entire Searched String

The pattern of ^character-string$ matches with a similar character-string representing the entire searched string. The following examples illustrate the matching of a pattern equivalent to the entire searched string.

Pattern

Searched String

Result

^SALES$

BSALES

No match

^SALES$

SALESFIL

No match

^SALES$

JSALESFL

No match

^SALES$

SALES

Match

^sales$

SALES

No match

^sales$

sales

Match