code: def chars_before(chars, match):
      
      if match.start <= 0:
          return True
      return match.input_string[match.start - 1] in chars
docs: Validate the match if left character is in a given sequence.
  
      :param chars:
      :type chars:
      :param match:
      :type match:
      :return:
      :rtype: