Use the matched substring instead of rebuilding it