class_docstr: DatasourceConfigOBS
class_docstr_tok: ["DatasourceConfigOBS"]
docstr: Validates the regular expression
docstr_tok: ["Validates","the","regular","expression"]
code: def obs_endpoint_validate_regular_expression(cls, value):
      """Validates the regular expression"""
      if not re.match(r"^https?:\/\/.+$", value):
          raise ValueError(
              r"must validate the regular expression /^https?:\/\/.+$/"
          )
      return value
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/datasource_config_obs.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from pydantic import Extra, BaseModel, Field, StrictStr, constr, validator
  from lightly.openapi_generated.swagger_client.models.datasource_config_base import DatasourceConfigBase
label_desc: Use image node_id 1 for calling the DatasourceConfigOBS obj's underlying member method code with example usage: obj.obs_endpoint_validate_regular_expression(cls, value) and returns: value