lib/email_reply_parser.rb
#generates regexp which always for additional words or initials between first and last names
generates regexp which always for additional words or initials between first and last names
generates regexp which always for additional words or initials between first and last names
def generate_regexp_for_name
      name_parts = @from_name_normalized.split(" ")
      seperator = '[\w.\s]*'
      regexp = Regexp.new(name_parts.join(seperator), Regexp::IGNORECASE)
    end
def generate_regexp_for_name name_parts = @from_name_normalized . split ( " " ) seperator = '[\w.\s]*' regexp = Regexp . new ( name_parts . join ( seperator ) , Regexp :: IGNORECASE ) end
generates regexp which always for additional words or initials between first and last names
generates regexp which always for additional words or initials between first and last names