util (internal): In NdnRegexMatcher, replace match with the constructor which also keeps the source string.