matchLength not used at all
regexReplaceMatch non-matching test
regexReplaceMatch non-matching test found a bug! fixed empty-matches.