简体   繁体   中英

How do I check for typos in a user submitted domain name?

Basically, I'm trying to automatically correct user submitted emails with typos that are only a few letters off. For instance, if a user accidentally submits gamil.com or gmial.com instead of gmail.com, I would like to correct it. What's a good method for handling this task?

Use pymailcheck:

https://pypi.python.org/pypi/pymailcheck/1.0.0 or https://github.com/dbarlett/pymailcheck

You can use it to check the email-addresses entered by users and suggest the correctly written email-address.

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