Guest User

Untitled

a guest
Dec 15th, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public class EmailPassDetectorRegular {
  2.  
  3. public EmailPassDetectorRegular(){}
  4.  
  5. public String handle(String str){
  6.  
  7. if(str.matches("^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\\\.[A-Za-z]{2,6}+[;:]+(.*)$"))
  8. return str;
  9. else
  10. return null;
  11. }
  12. }
Add Comment
Please, Sign In to add comment