Guest User

Untitled

a guest
Nov 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import java.util.regex.*;
  2. import java.util.Scanner;
  3.  
  4. public class Email
  5. {
  6. public static void main(String[] args)
  7. {
  8. System.out.println(Pattern.matches("^[\\w!#$%*/?|^{}'+\\-=_]+(\\.[\\w!#$%*/?|^{}'+\\-=_]+){0,1}@\\w+(\\.\\w+)*\\.(com|org|net|nu|se)$", new Scanner(System.in).nextLine()));
  9. }
  10. }
Add Comment
Please, Sign In to add comment