original_docstring: Create an Actor from a string.
  		:param string: is the string, which is expected to be in regular git format
  
  				John Doe <jdoe@example.com>
  				
  		:return: Actor 
docstring: Create an Actor from a string.
docstring_tokens: Create an Actor from a string .
code: def _from_string(cls, string):
  		"""Create an Actor from a string.
  		:param string: is the string, which is expected to be in regular git format
  
  				John Doe <jdoe@example.com>
  				
  		:return: Actor """
  		m = cls.name_email_regex.search(string)
  		if m:
  			name, email = m.groups()
  			return Actor(name, email)
  		else:
  			m = cls.name_only_regex.search(string)
  			if m:
  				return Actor(m.group(1), None)
  			else:
  				# assume best and use the whole string as name
  				return Actor(string, None)
  			# END special case name
  		# END handle name/email matching
code_tokens: def _from_string ( cls , string ) : m = cls . name_email_regex . search ( string ) if m : name , email = m . groups ( ) return Actor ( name , email ) else : m = cls . name_only_regex . search ( string ) if m : return Actor ( m . group ( 1 ) , None ) else : return Actor ( string , None )
short_docstring: Create an Actor from a string.
short_docstring_tokens: Create an Actor from a string .
comment: """Create an Actor from a string.
  		:param string: is the string, which is expected to be in regular git format
  
  				John Doe <jdoe@example.com>
  				
  		:return: Actor """$SEP$# assume best and use the whole string as name$SEP$# END special case name$SEP$# END handle name/email matching