I want to perform UI validation in android. while validating email address, I want to check it is valid email address or not. But, I want to validate top-level domain and also i want to prevent SQL Injection from it.
Here is a pattern I used as follows :
^[A-Z0-9+_.-]+@[A-Z0-9.-]+$
Please suggest some Idea
Try this, It might help you to solve your expectations
It will prevent SQL Injection while entering email address and also it will validate top-level domain names such as com, us, nz, au, ch like that