Regex 101 Exercise I7 - Make sure all characters inside <> are uppercase

First, as Sheva pointed out, making them all *lowercase* would make a lot more sense, but you have probably noticed that the correlation between these exercises and making sense is tenuous at best.

This is another case where that MatchEvaluator functionality is so useful. To match inside the <>, we simply use:


(Extra Credit: Discuss why the "?" is required, what other options are available, and the relation between the different match options and Adam Smith's market theories.)

Then, our MatchEvaluator is as follows:

static public string Evaluator(Match match)

      return match.Groups[0].Value.ToUpper();