Generally, in c# the string Equals() method will perform case-sensitive string comparison. If we want to perform case insensitive string comparison, we need to use the OrdinalIgnoreCase property and the Equals method .
Read moreHow do I make my character not case sensitive?
you can use Character. toLowerCase or Character. toUpperCase to make all to lower case or upper case and compare it.
Read moreHow do I make something optional in regex?
Optional Items
Read moreIs regex case sensitive?
By default, the comparison of an input string with any literal characters in a regular expression pattern is case sensitive , white space in a regular expression pattern is interpreted as literal white-space characters, and capturing groups in a regular expression are named implicitly as well as explicitly.
Read more