code: def regex_from_markers(markers):
      
      return re.compile('|'.join([re.escape(c) for c in markers]))
docs: Given a string of characters, construct a regex that matches them.
  
      Parameters
      ----------
      markers: str
          The list of string containing the markers
  
      Returns
      -------
      regex
          The regular expression matching the given markers.