code: def _process_marked_lines(lines, markers):
      
      # reverse lines and match signature pattern for reversed lines
      signature = RE_REVERSE_SIGNATURE.match(markers[::-1])
      if signature:
          return (lines[:-signature.end()], lines[-signature.end():])
  
      return (lines, None)
docs: Run regexes against message's marked lines to strip signature.
  
      >>> _process_marked_lines(['Some text', '', 'Bob'], 'tes')
      (['Some text', ''], ['Bob'])