docs: def extract_number(text):
      """Extract digit character from text.
      """
      result = list()
      chunk = list()
      valid_char = set(".1234567890")
      for char in text:
          if char in valid_char:
              chunk.append(char)
          else:
              result.append("".join(chunk))
              chunk = list()
      result.append("".join(chunk))
  
      result_new = list()
      for number in result:
          if "." in number:
              try:
                  result_new.append(float(number))
              except:
                  pass
          else:
              try:
                  result_new.append(int(number))
              except:
                  pass
  
      return result_new