In the character class meta-character documentation above, the circumflex (^) is described:
"^ negate the class, but only if the first character"
It should be a little more verbose to fully express the meaning of ^:
^ Negate the character class. If used, this must be the first character of the class (e.g. "[^012]").