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
Regular Expressions (Regular expression, abbreviated as Regexp,regex or REGXP), also known as regular expressions, regular expressions, or regular or normalized representations or formal representations, refer to a A single string that describes or
Regular Expressions (Regular Expression, abbreviated as Regexp,regex or REGXP), also known as regular expressions, regular representations or regular expressions, or formal representations or regular representations, refer to a To describe or match
Regular Expression (Regular Expression, abbreviated as regexp, regex or regxp), also known as Regular Expression, Regular Expression or Regular Expression, or Regular Expression, it refers to a single string used to describe or match a series of
Regular Expression (Regular Expression, abbreviated as regexp, regex or regxp), also known as Regular Expression, Regular Expression or Regular Expression, or Regular Expression, it refers to a single string used to describe or match a series of
Modifier is an important reference for regular expressions in php. Next I will explain the Regular Expression Pattern modifier in PHP, for more information, see references.
The PHP pattern modifier, also known as the pattern modifier, is used
Finally, csdn was chosen to sort out the knowledge points published over the past few years. This article was migrated to csdn in parallel. Because csdn also supports the markdown syntax, it's awesome!
[Craftsman's water:
We have already learned the basic syntax for regular expressions, including delimiters, atoms, metacharacters, and schema modifiers. In fact, the regular expression handler function must be borrowed in the case in which it is intended to work. In
Before learning the PHP regular expression modifier, first to understand the greedy mode, before the meta-character mentioned in the "?" There is also an important role, namely "greedy mode", what is "greedy mode"?
PHP Regular Expression greedy
PHP regular expression syntax reprinted from: http://blog.csdn.net/kkobebryant/article/details/267527
Basic regular expression syntax
First, let's take a look at two special characters: '^' and '$'. they are used to match the start and end of 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.