I'm trying to find a regex pattern that only accepts email with a specific domain as follows.
z= [a-zA-Z0-9]
y= [a-zA-z]
(1) [email protected] (eg: [email protected], [email protected])
(2) [email protected] (eg: [email protected], [email protected])
Currently what I have so far is: [.a-zA-z0-9]*@domain.[a-zA-z0-9]
Could anyone help me on this?
Here you are for request no 1
^[a-zA-Z0-9]+@domain\.[a-zA-z]+$
for request no 2
^[a-zA-Z0-9]+@[a-zA-Z0-9]+\.domain\.[a-zA-z]+$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With