Alt F Opt F Find Replace. [ Indent Code Right. In a regular expression, the caret matches the concept.Similarly, matches right after the last character in the string. c matches c in abc, while a does not match at all. A regex that consists solely of an anchor can only find zero-length matches.