code: def remove_rules(self, description):
          '''
          Remove all rules that match a specified description.
  
          @description - The description to match against.
  
          Returns the number of rules removed.
          '''
          rm = []
          description = description.lower()
  
          for i in range(0, len(self.extract_rules)):
              if self.extract_rules[i]['regex'].search(description):
                  rm.append(i)
  
          for i in rm:
              self.extract_rules.pop(i)
  
          return len(rmf remove_rules(self, description):
          '''
          Remove all rules that match a specified description.
  
          @description - The description to match against.
  
          Returns the number of rules removed.
          '''
          rm = []
          description = description.lower()
  
          for i in range(0, len(self.extract_rules)):
              if self.extract_rules[i]['regex'].search(description):
                  rm.append(i)
  
          for i in rm:
              self.extract_rules.pop(i)
  
          return len(rm)
docs: Remove all rules that match a specified description.
  
          @description - The description to match against.
  
          Returns the number of rules removed.