code: function(r, flags) {
        var reg = allCharsReg(flags);
        return RegExp(r.source, getRegExpFlags(r).replace(reg, ''));
      }
docs: *
  @method removeFlags(flags)
  @returns RegExp
  @short Creates a copy of the regex with `flags` removed.
  
  @example
  
  /texty/gim.removeFlags('g')  -> /texty/im
  /texty/gim.removeFlags('im') -> /texty/g
  
  @param {string} flags
  
  *