.
is a special character in regex, that matches anything. Try escaping it:
MatchCollection match = Regex.Matches(entireText, @"alphabet\.");
.
is a special character in regex, that matches anything. Try escaping it:
MatchCollection match = Regex.Matches(entireText, @"alphabet\.");