You should have expanded a little bit on what you said, your question was very confusing, you should have also mention you were using regex.
Try this:
^[A-Za-z0-9.\\-]+.[A-Za-z0-9.\\-]+\\.[A-Za-z]{2,4}$
0
solved how can validate website address in android application [closed]