Is it possible that regex.Match in the (much simplified) code below can ever return null?
Regex regex = new Regex(pattern);
Match m = regex.Match(input);
Documentation is your friend here:
An object that contains information about the match.
Microsoft is telling you that it will only return a
Match object (not
null), which means you can rightfully assume this to be true.