\A and \Z do roughly the same thing, except that they are slightly different from ^ / $ with respect to the newline characters.
So, if you remember this, and also remember that ^ looks most like A and $ looks most like Z , which can be quite mnemonic.
weston
source share