To clarify, by "unintended side-effect" I meant, it's matching because defining the regex with a character class like you were means that if the string contained 'C or L or O or S or E' or 'C or L or O or S or E or S' or "F or I or X'... etc, so in a string that reads 'cordoval', it's matching, but not the way you intended.