I will validate this URL with an email address inside.
These two domains are allowed:
https://www.example.com/secure/index.php?ID=john@example.com
https://www.example.com/secure/index.php?ID=john@example-test.com
All names before the @
in the email address allowed.
When the user inserts another domain after the @
, like this:
https://www.example.com/secure/index.php?ID=john@gmail.com
they will get an error. How can I do this?