Case-Insensitive Regex Patterns in .NET
For some reason, I haven’t had to do this in a long time, so had to look it up.
There are three options for doing case-insensitive regular expressions in .NET.
The first is to use the RegexOptions enumeration to specify case-insensitive behavior:
Regex.IsMatch(”Fubar”,”^fubar”,RegexOptions.IgnoreCase)
The equivalent option is to put (?i) at the start of the expression. This is [...]