In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to achieve Email verification of regular expressions, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
The format of international domain name is as follows:
The domain name is made up of any combination of specific character sets, English letters, numbers and "-" (that is, hyphens or minus signs) of national characters, but the beginning and end cannot contain "-", "-" cannot appear continuously. Letters in the domain name are not case-sensitive. Domain names can be up to 60 bytes long (including the suffixes .com, .net, .org, etc.).
/ ^ [a-z0-9] * [- _]? [a-z0-9] +) * @ ([a-z0-9] * [- _]? [a-z0-9] +) + [\.] [a-z0-9] {2jue 3} ([\.] [Amurz] {2})? $/ I
/ content / I constitutes a case-insensitive regular expression
^ match starts
$end of match
[Amurz] E-Mail prefix must start with an English letter
([a-z0-9] * [-]? [a-z0-9] +) * matches _ axi2, aaa11, _ 1_a_2, but does not match A1 _, aaff_33a_, a__aa. If it is an empty character, it also matches. * indicates 0 or more.
* represents 0 or more preceding characters.
[a-z0-9] * matches 0 or more English letters or numbers
[- _]? Match 0 or 1 "-" because "-" cannot appear continuously
[a-z0-9] + matches one or more English letters or numbers because "-" cannot be used as an ending
@ there must be a @
([a-z0-9] * [- _]? [a-z0-9] +) + is explained above ([a-z0-9] * [- _]? [a-z0-9] +), but cannot be empty. + indicates one or more.
[\.] Set the special character (.) As ordinary characters.
[a murz] {2 Mague 3} matches 2 to 3 English letters, usually com or net, etc.
([\.] [amurz] {2})? Match 0 or 1 [\.] [a murz] {2} (for example, .cn, etc.) I don't know if the last part of the general .com.cn is two digits. If not, please modify {2} to {start and end words}.
The above is all the content of the article "how to implement Email to validate regular expressions". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.