Comparison | function | The following function can check the email address format, only in the form of:
ABC@ABC.ABC,ABC@ABC.ABC.ABC and ABC@ABC.ABC.ABC.ABC-like strings to pass the check,
The following illegal addresses will not pass:
@abc @163.net,abc@163..net,abc@163.net.,abc@163@net and so on can be struck out.
What are the e-mail addresses in these formats?
Label:We sometimes need to check whether MySQL is down or not, and if it goes down, you should automatically restart the app and notify the OPS staff!This script is simple to implement the MySQL after the downtime of automatic restart and mail notification operations, this is the shell script, of course, some friends like to use the implementation of Python, the principle is the same!The main use here is that the command is mysqladmin ping . #!/bin/ba
if (eregi ("^[_.0-9a-z-]+@" ([0-9a-z][0-9a-z-]+.) +[a-z]$ ", $email)) {
echo "Your e-mail through a preliminary check";
}
?>
In this sentence, the first is the application of a eregi function, this function is good understanding. If you look for a book, you can give an explanation:
Syntax: int ereg (string pattern, string string, array [regs]);
return value: Integer/array
This function parses string strings
if (eregi ("^[_.0-9a-z-]+@" ([0-9a-z][0-9a-z-]+.) +[a-z]$ ", $email)) {
echo "Your e-mail through a preliminary check";
}
?>
In this sentence, the first is the application of a eregi function, this function is good understanding. If you look for a book, you can give an explanation:
Syntax: int ereg (string pattern, string string, array [regs]);
return value: Integer/array
This function parses string strings
The phpwindow platform simulates the checkdnsrr function to check whether the email actually exists. There is a checkdnsrr function in the php system function. This function is used to check whether a DNS record exists based on a given hostname or IP address, the purpose is to check whether there is a checkdnsrr functi
JavaScript Email Format CheckNo dependencies, for any platform, JavaScript special effects are written in the original language.Demo: http://www.huiyi8.com/jiaoben//*** Email Format check* @param {Object} email address content*/function Emailformatcheck (email) {if ((Email.l
// --------------------------------------------------------------------------------------------------------------------//
// Respect the work.//
// // Defines the EmailChecker type.// // --------------------------------------------------------------------------------------------------------------------namespace CSharpLearning{ using System; using System.Linq; using Microsoft.Exchange.WebServices.Data; /// /// The email check
? Phpif (eregi (^ [_. 0-9a-z-] + @ ([0-9a-z] [0-9a-z-] + .) + [a-z] $, $ email) {echo your e-mail through a preliminary check ;}? In this sentence, an eregi function is first applied, which is quite understandable. If you look for a book, you can explain it to you: syntax: intereg (stringpattern, stringstring, array regular expression
If (eregi ("^ [_. 0-9a-z-] + @ ([0-9a-z] [0-9a-z-] +.) + [a-z] $", $
of this vulnerability is the same as that of using javascript to check the extension of the uploaded file during upload. No matter how the client checks it, it is in vain as long as the server does not check it, because we can submit form variables in the form of abnormal users.Fill in the relevant information, complete the registration, prompt you can log on immediately, with the registered x50@xxxx.com s
if (! (/^1[3,5,6,7,8,9]\d{9}$/). Test (E.detail.value.data_phone)) { Wx.showtoast ({ ' Please enter a valid 11-digit mobile number! ') , }) Else if (! (/(^\d{15}$) | (^\d{17} ([0-9]| X|X) ($)/. Test (E.detail.value.data_idcard))) { Wx.showtoast ( {' ID number must be a 18-bit second-generation ID card! ') , }) } Else if (! (/^ ([a-za-z0-9_-]) [email protected] ([a-za-z0-9_-]) + (. [ A-za-z0-9_-]) (+$)/. Test (E.
if (eregi ("^[_.0-9a-z-]+@" ([0-9a-z][0-9a-z-]+.) +[a-z]$ ", $email)) {
echo "Your e-mail through a preliminary check";
}
?>
In this sentence, the first is the application of a eregi function, this function is good understanding. If you look for a book, you can give an explanation:
Syntax: int ereg (string pattern, string string, array [regs]);
return value: Integer/array
This function parses string strings
If (eregi ("^ [_. 0-9a-z-] + @ ([0-9a-z] [0-9a-z-] +.) + [a-z] $", $ email )){Echo "your email has passed the preliminary check ";}?>In this sentence, an eregi function is first applied, which is quite understandable. If you look for a book, you can give an explanation:Syntax: int ereg (string pattern, string, array [regs]);Returned value: integer/ArrayThis funct
Check the work of e-mail for some registered classes of the site is very necessary, the following has a good function, you can refer to the nextThe code is as follows: function is_valid_email_address ($email) {$qtext = ' [^//x0d//x22//x5c//x80-//xff] '; $dtext = ' [^//x0d//x5b-//x5d//x80-//xff] '; $atom = ' [^//x00-//x20//x22//x28//x29//x2c//x2e//x3a-//x3c ']. '//x3e//x40//x5b-//x5d//x7f-//xff]+ '; $quoted
Recently, I forgot to send attachments to emails. I wrote a VBA applet to check the attachments. If the title (subject) contains a specific string, such as the leave request requested by the Company, time Sheet will check and prompt. It feels quite helpful. The code and steps are as follows.
Open Outlook
Alt + F11 enter code editing mode
Add the code to the thisoutlooksession module and save it.
The co
if (eregi ("^[_.0-9a-z-]+@") ([0-9a-z][0-9a-z-]+.) +[a-z]$ ", $email)) { echo" your e-mail through preliminary check "; } ?> In this sentence, the first is to apply a eregi function, this function is also good to understand. Find a book, and I'll give you an explanation.: Syntax: int ereg (string pattern, string string, array [regs]); return value: Integer/array This function is P Attern the rule to pa
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.