4 ms·
Yick, your reaction is understandable. But know that the following is far more typical: using System.Text.RegularExpressions; ... if (Regex.IsMatch(s, sPatt
by dk 19y ago
Yick, your reaction is understandable. But know that the following is far more typical:
using System.Text.RegularExpressions;
...
if (Regex.IsMatch(s, sPattern, RegexOptions.IgnoreCase))...
- mojuba 19y agoOh yes, I know ;) but I wouldn't say it is much less verbose than the first example in terms of the number of words used, and besides, it's Microsoft's tutorial, i.e. it's how they teach novice programmers to program in C#.