class_docstr: DockerWorkerRegistryEntryData
class_docstr_tok: ["DockerWorkerRegistryEntryData"]
docstr: Validates the regular expression
docstr_tok: ["Validates","the","regular","expression"]
code: def name_validate_regular_expression(cls, value):
      """Validates the regular expression"""
      if not re.match(r"^[a-zA-Z0-9][a-zA-Z0-9 _-]+$", value):
          raise ValueError(
              r"must validate the regular expression /^[a-zA-Z0-9][a-zA-Z0-9 _-]+$/"
          )
      return value
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/docker_worker_registry_entry_data.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import List, Optional
  from pydantic import Extra, BaseModel, Field, StrictStr, conint, conlist, constr, validator
  from lightly.openapi_generated.swagger_client.models.docker_worker_state import DockerWorkerState
  from lightly.openapi_generated.swagger_client.models.docker_worker_type import DockerWorkerType
label_desc: Use image node_id 2 for calling the DockerWorkerRegistryEntryData obj's underlying member method code with example usage: obj.name_validate_regular_expression(cls, value) and returns: value