File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 11# EmailValidator4J
22[ ![ Build Status] ( https://travis-ci.org/egulias/EmailValidator4J.svg?branch=master )] ( https://travis-ci.org/egulias/EmailValidator4J )
33
4- RFC strict EmailValidator for Java
4+ Simple RFC compliant EmailValidator for Java.
55
66** Suported RFCs**
77
@@ -26,11 +26,26 @@ dependencies {
2626
2727[ JCenter ] : https://bintray.com/egulias/maven/email-validator-4j
2828
29+ ## Why not using ANTLR
30+ Because you don't want to download internet to validate an email.
2931
3032Getting Started
3133---------------
3234
3335``` java
36+
37+ import emailvalidator4j.EmailValidator
38+
39+ public class ValidateEmail {
40+ public static void main (String [] args ) {
41+ EmailValidator validator = new EmailValidator ();
42+ if (validator- > isValid(args[0 ]) {
43+ System . out. println(" Valid email" );
44+ } else {
45+ System . out. println(" Invalid email" );
46+ }
47+ }
48+ }
3449```
3550
3651Validation Strategies
Original file line number Diff line number Diff line change 1+
2+ plugins {
3+ id " com.jfrog.bintray" version " 1.1"
4+ }
5+
16apply plugin : ' java'
27apply plugin : ' idea'
3-
48version = ' 1.0'
59
610repositories {
You can’t perform that action at this time.
0 commit comments