code: def detect_model_num(string):
      
      match = re.match(MODEL_NUM_REGEX, string)
      if match:
          return int(match.group())
      return None
docs: Takes a string related to a model name and extract its model number.
  
      For example:
          '000000-bootstrap.index' => 0