Is this selection by Regex Coach is incorrect?

[^a] is as interpreted as follows:

enter image description here
You can see it’s selecting only first character which is not a.
But regexr.com selects this differently as shown in following screen shot.

enter image description here

Regexr.com makes sure that [^a] matches every character which is not a.
So which one of these is erroneous?


Source: regex

Leave a Reply