Code for validating email in java top 20 islamic dating sites
I'm trying to validate email and phone number on the server.
It works but trying to validate if the email is entered correctly.
Also phone number has the correct number of digits.
Generally, all you can say is that it's made up of 2 strings with an at-sign (@) in between but that's not always the case (for example on internal company networks). One place to start is to decide what kind of phone numbers and email addresses you are going to accept.
As mentioned above, there are different variations in some situations.
Perhaps the first step in this decision process is identifying who will use this program.
Will they be likely to enter just their email user name and expect it to be delivered on the local network?
Typically this can be avoided by forcing them to enter a domain name.
Search for code for validating email in java:
For phone numbers, are you going to allow international prefixes or just the standard format in your own country?