简体   繁体   中英

PHP regex for letters followed by numbers followed by "hotmail.com"

I have a very specific requirement to stop bots attacking my site. They are joining and registering with email addresses of the form:

[first_name][numbers]@hotmail.com

eg samuel7348@hotmail.com

Can someone please give me the regex to match this so I can block them at registration?

Try this -

^[a-zA-Z]+[0-9]+@hotmail\.com$

Demo here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM