string: Allow references to unmatched groups in REGEX REPLACE References to unmatched groups will be replaced with empty strings. Issue: #26629 Fixes: #19012