Oh, After look at some idea from OriginalGriff. I try spend more time to debug and get like this.
Demo link . By the way, all option probably working fine.
var _matchClassID = Regex.Match(input.Replace("\r\n", ""), @"\<A ""CLASSID"">.*?(\<A "".*?"">)");
var _matchStudentID = Regex.Match(input.Replace("\r\n", ""), @"\<A ""STUDENTID"">.*?(\<A "".*?"">)");