[ruby-core:111905] [Ruby master Feature#12698] Method to delete a substring by regex match