Function
From Haohappy ' S blog an email validation function
function Valid_email ($email) {We check that there ' s one @ symbol, and that's the lengths are rightif (!ereg ("^[^@]{1,64}@[^@]{1,255}$", $email)) {Email invalid because wrong number of
1, simplified the code. (It actually removes some of the variables that you don't need to define)
2, for the information retrieved from the InterNIC is too simple, according to InterNIC feedback in the information of WHOIS server for further
PHP 5.3 Ereg () is not working properly, prompting "Function ereg () is deprecated Error".
The source of the problem is that there are two regular representations in PHP, one is POSIX, the other is PERL,PHP6 's intention to abolish POSIX regular
Working with instancesAfter a more comprehensive understanding of regular expressions, let's take a look at how regular expressions are used in perl,php and JavaScript.In general, the use format of the Perl regular expressions is as follows:Operator/
1, simplified the code. (It actually removes some of the variables that you don't need to define)
2, for the information retrieved from the InterNIC is too simple, according to InterNIC feedback in the information of WHOIS server for further
Now found that a lot of PHP programmers, especially learning is not a long time, do not know the essence of PHP. How did Perl become famous in the business world? It's a powerful regular expression. And what about PHP? It is a language developed
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.