I'm trying to add a regular expression to a registration page I've done in PHP but I'm absolutely useless with them! Anyone able to help?
I only want people to be able to register with an email from a specific university...
So I need a regular expression to check, for example, that the email address ends with @dmu.ac.uk
I thought I'd try my luck with: preg_match("@dmu.ac.uk$", $pEmail) just to test it but just got an error (unsurprisingly). Guesswork doesn't often work with regular expressions
Any help would be appreciated.
Thanks in advance.
I only want people to be able to register with an email from a specific university...
So I need a regular expression to check, for example, that the email address ends with @dmu.ac.uk
I thought I'd try my luck with: preg_match("@dmu.ac.uk$", $pEmail) just to test it but just got an error (unsurprisingly). Guesswork doesn't often work with regular expressions

Any help would be appreciated.
Thanks in advance.
Last edited: