Well, this is another way (I want to use find( ) method
)
Pattern p = Pattern.compile("^[a-z0-9_\\.]{1,15}@[a-z0-9_]+\\.[a-z]{2,}$");
Matcher m = p.match("hu@sdsd12@yahoo.com");
System.out.println(m.find( ));
Any way, thanks all Stefan, David(and you Carol
)
Gracias.
[ March 30, 2005: Message edited by: John Todd ]