In our code there is a regular expression of the following form:
string regex = @"(?i)foo=(BAR?-[A-Z]+(33|34)?)";
What does the “(?i)” at the beginning of the regex match/do? I’ve looked through the .NET regex documentation and can’t seem to figure out what (?i) would mean. Thanks!
(?i)activates case-insensitive matching.Reference: MSDN, Regular Expression Options (highlighting by me):