Regular expressions can match a specified pattern, every language will have at least one implementation of a regex language.
if (username == "Tiffany" || "tiffany" || "Tiffany McClure" || "tiffany McClure" || "Tiffany Mcclure" || "tiffany mcclue")
Am I the only one thinking that looks pretty elegant? Is there any language that implements this way of checking the same variable for different boolean cases?
EDIT: Although that's not exactly what you're asking, the effect is to want to test your variable against a range, which for strings is equivalent to a pattern.