Skip to content

A category on NSString for checking if a string is an email address.

License

Notifications You must be signed in to change notification settings

baorsmile/NSString-Email

Repository files navigation

NSString-Email

A category on NSString for checking if a string is an email address.

NSString-Email

Build Status Cocoapods Cocoapods

Adding NSString-Email to your project

Cocoapods

CocoaPods is the recommended way to add NSString-Email to your project.

  • Add a pod entry for NSString-Email to your Podfile pod 'NSString-Email', '~> 0.0.2'
  • Install the pod(s) by running pod install.

Source files

Alternatively you can directly add source files to your project.

  1. Download the latest code version or add the repository as a git submodule to your git-tracked project.
  2. Open your project in Xcode, then drag and drop all files at NSString-Email folder onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.

Usage

NSString *string = @"[email protected]";
BOOL isEmail = [string isEmail];

License

This code is distributed under the terms and conditions of the MIT license.

Change-log

A brief summary of each NSString-Email release can be found on the wiki.

About

A category on NSString for checking if a string is an email address.

Resources

License

Stars

Watchers

Forks

Packages

No packages published