Square Bracket Notation
In regular expressions, a character class (or set) allows you to tell the regex engine to match only one out of several characters. This is done by placing the characters inside square brackets [].
Basic Usage
If you want to match the word "grey" or "gray", you can use gr[ea]y. This tells Python to match 'g', 'r', then either 'e' or 'a', and finally 'y'.