Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Parse a list of emails pasted into a web form.
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
Gemfile
LICENSE
README.md
Rakefile
email_addresses_parser.gemspec

README.md

EmailAddressesParser

Parse a list of emails pasted into a web form, returning a hash with valid emails as keys and associated data (i.e. names) as values. Pasted values can be comma or line separated. Invalid values are returned in an array.

The default regular expression used for parsing can be overridden with an optional second argument.

Tested with Ruby 1.9.3 but should work with earlier versions.

Installation

  1. git clone git://github.com/victorgrey/email_addresses_parser.git
  2. cd email_addresses_parser
  3. gem build email_addresses_parser.gemspec
  4. (sudo) gem install email_addresses_parser-x.x.x.gem

Usage

valid_items_hash, invalid_items_array = EmailAddressesParser.parse_list(email_addresses_list)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright

Copyright (c) 2012 Victor Grey. See LICENSE for details.

Something went wrong with that request. Please try again.