class_docstr: Helper utils for Workflow Archiver tool.
  This class lists out all the methods such as validations for workflow archiving.
docstr: Method checks whether workflow name passes regex filter.
  If the regex Filter fails, the method exits.
  :param workflow_name:
  :return:
docstr_tok: ["Method","checks","whether","workflow","name","passes","regex","filter",".","If","the","regex","Filter","fails",",","the","method","exits",".",":","param","workflow_name",":",":","return",":"]
code: def check_workflow_name_regex_or_exit(workflow_name):
      """
      Method checks whether workflow name passes regex filter.
      If the regex Filter fails, the method exits.
      :param workflow_name:
      :return:
      """
      if not re.match(r"^[A-Za-z0-9][A-Za-z0-9_\-.]*$", workflow_name):
          raise WorkflowArchiverError(
              "Workflow name contains special characters.\n"
              "The allowed regular expression filter for workflow "
              "name is: ^[A-Za-z0-9][A-Za-z0-9_\\-.]*$"
          )
  
imports: import logging
  import os
  import re
  import zipfile
  import shutil
  import tempfile
  from .workflow_archiver_error import WorkflowArchiverError
  from .manifest_components.manifest import Manifest
  from .manifest_components.workflow import Workflow
label_desc: Use image node_id 12 for calling the WorkflowExportUtils obj's underlying member method code with example usage: obj.check_workflow_name_regex_or_exit(workflow_name) without return types