Perform a case insensitive match using Regex without using RegexOptions enumeration
        Posted  
        
            by spoon16
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by spoon16
        
        
        
        Published on 2010-03-13T20:46:51Z
        Indexed on 
            2010/03/13
            20:55 UTC
        
        
        Read the original article
        Hit count: 681
        
Is it possible to do a case insensitive match in C# using the Regex class without setting the RegexOptions.IgnoreCase flag?
What I would like to be able to do is within the regex itself define whether or not I want the match operation to be done in a case insensitive manner.
I would like this regex, taylor, to match on the following values:
- Taylor
- taylor
- taYloR
© Stack Overflow or respective owner