Capture GroupSyntax:
Character
Description
Example
(Pattern)
Match pattern and capture the result. The group number is automatically set.
(Abc) + dMatch abcd or abcabcd
(? Name>Pattern)Or(? 'Name'Pattern)
So far, many programming languages and tools contain support for regular expressions, and C # is no exception, and the C # base Class library contains a namespace (System.Text.RegularExpressions) and a series of classes that give full play to the
Grep-elease 2. kernel 2.txt grep-Eh (ell | kernel displays grep-E ^ (h | y) tes not developed by h.
Grep-E l \ {2, \} 2.txt grep-E h (ell | a) o test.txt grep [a-z] \ {5, \} test.txt grep-xf a.txt B .txt // query the row grep-vxf B .txt a.txt that a
The php regular expression matches the email code, and the analysis is more detailed. if you want to have problems in this area, you can refer to 1. verify email:
The code is as follows:
If (ereg ("/^ [a-z] ([a-z0-9] * [-_ \.]? [A-z0-9] +) * @ ([a-
This article for you to share the knowledge of the string learning in PHP, the need for friends can refer to
Create
PHP supports 4 ways to create a string: single quotes, double quotes, heredoc grammatical structure, and nowdoc grammatical
e-mail, like a regular email-like, also requires an address, which differs from regular mail in that it is an electronic address. All users who have mailboxes on the Internet have one or several email addresses, and these email addresses are unique.
Step 1: convert the collected color license plate image to a grayscale or grayscale image after Gaussian smoothing, then perform direct filtering. 3. use the Sobel operator to perform Edge Detection. 4. conduct corrosion, expansion, and operation on
First open the network teaching platform of campus network http://eol.zhbit.com/homepage/common/Find the appropriate form codeThe name of the user name is Ipt_loginusernameThe name of the password is Ipt_loginpasswordThe address submitted is
PHP Regular Expression Learning notes, regular expression learning notes
PHP Regular Expression Learning notes sharing:
1. Create a regular expression
$regex = '/\d/i ';It's a bit like the first way in JavaScript, but here is a string.
2. Special
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
Regular expression match file_get_contents the content after file_get_contents is HTMLcode ...... & lt; spanmusicIcon: {id: 7313936, type: song, iconStr: playaddcollectsongw regular expression match file_get_contents
The content after
Wildcards and regular expressions are easy to confuse. First, you must understand that the two are different. I personally think that Wildcards are used in shell commands (such as file name-related operations) in Linux, the regular expression is
First, IntroductionJavaScript is a programming language, the browser has built-in JavaScript interpreter, so in the browser according to the JavaScript language rules to write the corresponding code, the browser can explain and make corresponding
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
DirectoryFirst, how to writeSecond, the variableThird, the data typeIv. OtherV. Statements and exceptionsVi. functions
JavaScript is a programming language, the browser has built-in JavaScript interpreter, so in the browser according to the
The composition of the regular expression:
General characters: characters with no special meaning
Special characters (meta characters): metacharacters, which have special meanings in regular expressions
Common meta-characters in
Mark related points of knowledge:First, what is JS's built-in object, and what does it include? (The following information is transferred from the integration of online resources)(W3shool JS manual address:
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.