private final String reg2 = "[A-Z][A-Za-z0-9_]+@[a-z]+[.com|.net][.sg|.cn|.au]?";
this line of code is supposed to be the regex for an email tester. the current email I'm using to test it is [email protected](imaginary of course). However, it seems to be always wrong. How do I change it?
"[A-Z][A-Za-z0-9_]+@[a-z]+(?:\\.com|\\.net)(?:\\.sg|\\.cn|\\.au)?"[.com|.net]). May I suggest you start with a tutorial?