[^a] is as interpreted as follows:
You can see it’s selecting only first character which is not
But regexr.com selects this differently as shown in following screen shot.
Regexr.com makes sure that
[^a] matches every character which is not
So which one of these is erroneous?