Suppose we have a list of teams, named like this: Team A, Team B, ..., Team Z. Then:
Team [AB]: This will match either either Team A or Team BTeam [^AB]: This will match any team except Team A or Team BWe often need to match characters that "belong" together in some context or another (like letters from A through Z), and this is what character classes are for.