Regex:  Dissociated match logic into GetMatch, added comments, fixed Match