core: fix example in comment of function string_replace_regex