regex_replace has a implicit parameter for `replacement` and thus can remove the matched string (cherry picked from commit aa9ea3d43a)
aa9ea3d43a