Regex uppercase
-
Hi, I created my regex like the following:
Regex regexEET = new Regex(".*?EET.*?");
But this one also detects "eet". I was wondering how can I modify it to only search for uppercase "EET". Thank you.
-
Hi, I created my regex like the following:
Regex regexEET = new Regex(".*?EET.*?");
But this one also detects "eet". I was wondering how can I modify it to only search for uppercase "EET". Thank you.
-
Hi, I created my regex like the following:
Regex regexEET = new Regex(".*?EET.*?");
But this one also detects "eet". I was wondering how can I modify it to only search for uppercase "EET". Thank you.
When I run your regular expression, I only get matches for EET. You haven't specified any regex options have you?
This space for rent
-
When I run your regular expression, I only get matches for EET. You haven't specified any regex options have you?
This space for rent
Oh my! You guys are right!
Regex regexEEST = new Regex(".*?EEST.*?",
RegexOptions.IgnoreCase |
RegexOptions.CultureInvariant |
RegexOptions.IgnorePatternWhitespace |
RegexOptions.Compiled);I didn't notice
RegexOptions.IgnoreCase
Thank you, your comments were very helpful.
-
Oh my! You guys are right!
Regex regexEEST = new Regex(".*?EEST.*?",
RegexOptions.IgnoreCase |
RegexOptions.CultureInvariant |
RegexOptions.IgnorePatternWhitespace |
RegexOptions.Compiled);I didn't notice
RegexOptions.IgnoreCase
Thank you, your comments were very helpful.
It's an easy mistake to make. Glad you got it sorted.
This space for rent