пятница, 14 марта 2014 г.

Regexp for checking email string


To check your email with regular expression do that:

String pattern = "[a-zA-Z0-9-_.]+@[a-zA-Z0-9-_.]+\\.[a-zA-Z]{2,4};
System.out.println(Pattern.matches(pattern, "ваша email");

Комментариев нет:

Отправить комментарий