PHP extension text processing -- PCRE regular expression syntax 3 -- escape sequence (backslash) backlash has multiple usage. First, if it is followed by a non-alphanumeric character, it indicates that the special meaning represented by this
PCRE
There are two different ways to use regular expressions in PHP: PCRE (Perl compatible notation, preg_*) function and POSIX (POSIX extended notation, ereg_*) functions. Luckily, the POSIX family function was deprecated from the PHP 5.3.0.
Differences from Perl PCRE function PCRE Patterns PHP manual
Schema Syntax
(No version information available, might only being in SVN)
Schema syntax-syntax explanation for Perl compatible regular expressions
The PCRE library is a set of functions
PHP Regular expression notes, PHP regular expression notes
What is a regular expression
On the computer we often use (wildcards) to find the files we need, for example: *.doc here the * representative matches 0 or more characters. Regular
What is a regular expression
On the computer we often use (wildcards) to find the files we need, for example: *.doc, where the * stands for matching 0 or more characters. Regular expressions are also tools used for text matching, except that they
There are two sets of regular expression libraries in PHP that are similar in functionality, but have slightly different execution efficiencies:
A set is provided by the Pcre (Perl compatible Regular Expression) library. A function named after a
PHP regular expression note what is a regular expression
On the computer, we often use (wildcard) to find the files we need, for example, *. doc. here * indicates matching zero or multiple characters. Regular expressions are also a tool for text
Regular Expressions (RegEx)--Quick referenceBasic knowledgeMatch anywhere: By default, regular expressions can match substrings anywhere in the searched string. For example, the regular expression ABC can match abc123, 123ABC, and 123abcxyz. To
Basic knowledge
CharacterPOSIX Extended Regular Expression functionsPerl-compatible Regular expression functionsFrom the message verification.
The format of the message:
Tenssun@163.com
Where Tenssun is the user name, 163.com is the server name
Anchor
Outside of a character class, in the default match mode, ^ is an assertion that asserts that the current match is at the beginning of the target string. Inside a character class, ^ indicates that the character described in this character
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.