Objective
PHP is a large number of web-used background CGI development, usually after the user data data to produce some results, but if the user input data is incorrect, there will be problems, such as someone's birthday is "February 30!" How
Preface
PHP is widely used in the background CGI development of the web, usually after the user data data to obtain a certain result, but if the user input data is incorrect, there will be problems, such as someone's birthday is "February 30"! What
First, Let's take a look at two special characters: ' ^ ' and ' $ ' they are used to match the start and end of the string, respectively, to illustrate
"^the": matches a string that starts with "the";"Of despair$": matches a string ending with "of
Reprinted from: http://blog.csdn.net/kkobebryant/article/details/267527
Basic syntax for regular expressions
First, let's take a look at two special characters: ' ^ ' and ' $ ' they are used to match the beginning and end of the string,
ObjectivePHPBy a large number ofApplicationInWebThe background CGIDevelopment, usually in a userDataData, but if the user entered the data is incorrect, there will be problems, such as someone's birthday is "February 30!" How should it be like to
PHP regular expressions are used primarily for string pattern segmentation, matching, lookup, and substitution operations. Using regular expressions can be inefficient in some simple environments, so how to better use PHP regular expressions
PHPBy a large number ofApplicationInWebThe background CGIDevelopment, usually in a userDataData, but if the user entered the data is incorrect, there will be problems, such as someone's birthday is "February 30!" How should it be like to test the
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.