forms - PHP Institutional Email Validation -


i make user registration form accepts email addresses university.

e.g

me@gmail.com, me@yahoo.com, me@live.com = invalid

me@university.ac.uk = valid

what types of terms , queries should start researching achieve this? new php, homework, i've done far can find tutorials on how validate emails based on rejecting invalid inputs, rather accepting valid domain extensions such @university.ac.uk

hope makes sense, not trying code written me (although visual explanations helpful), asking few pointers in right direction.

i suggest regex email requirements.

/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@\buniversity.ac.uk/

please visits here https://regex101.com/r/kkjeho/9


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -