public static void ValidateExpression()

in 05-LanguagesAndFrameworks/RegularExpresssions/1-RegularExpressions.cs [20:28]


        public static void ValidateExpression()
        {
            // 3. Place caret on expression and <shortcut id="Show context actions">Alt+Enter</shortcut>, select "Validate regular expression"
            //    Enter test words, see that they're captured
            //    See that regex requires a trailing space to capture the last word
            //    Change the "+" before the comment to "*"
            //    Test + click insert. See that the expression has been updated
            var match = Regex.Match("abc", @"(?<Word>[A-Za-z]+)(\s|\t)+(?# Comment)", RegexOptions.ExplicitCapture);
        }