Match into groups

suggest change
public string Check()
{
    string input = "Hello World!";
    string pattern = @"H.ll. (?<Subject>W.rld)!";

    Match match = Regex.Match(input, pattern);

    // World
    return match.Groups["Subject"].Value;
}

If the input does not match, Match.Success is false and the group value is empty.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents