W.rld)!"; Match match = Regex.Match(input, pattern); // World return match.Groups["Subject"].Value; }"> W.rld)!"; Match match = Regex.Match(input, pattern); // World return match.Groups["Subject"].Value; }"> W.rld)!"; Match match = Regex.Match(input, pattern); // World return match.Groups["Subject"].Value; }">
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;
}