Personally, the main use of it to do some complex string analysis, extract the desired informationLearning principles: Enough on the line, when needed in depth
The summary is as follows:
Special symbols in regular expressions:
"." Table any
Several Methods for getting simple HTML Tag content
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->// ==================================== Begin1 ====================== ==========
// Test
When I read the code written by my predecessors, I saw a regular expression written by my predecessors. After several debugging times, I didn't understand RegEx. March. Now I can check the materials and learn the basics!
This is the value and rule
Objective: To use. netCodeLog on to. NET and submitArticleArticle 1
Note: For post requests on the Asp.net page, the server will verify the submitted _ viewstate and _ eventvalidation. Therefore, the two fields must be submitted during the request.
In C #, we typically use the Regex class to represent a regular expression. The general regular expression engine supports the following 3 matching modes: Single-line mode (singleline), multiline mode (Multiline), and ignore case (IgnoreCase).
1.
First, capture the entire webpage content and place the data in byte [] (the Network upload and transmission form is byte) to further convert it to a string to facilitate its operation. The example is as follows:Private Static string getpagedata
I. Classification of groupsThe group in the regular expression includes the capture group and the non-capture group, and the capture group is divided into the common capture group and the named capture group, which areCapture group: (exp)Named
The system. Text. regularexpressions namespace provides the Regular Expression Function, mainly including seven classes. The relationship between them is shown in the right figure. It is very complicated to write a lot of their functions and online
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)
///
///
Determine whether the IP address is correct. The IP address range is (0.0.0.0 ~ 255.255.255)
///
///
IP address to be verified
///
Public
Bool
Isip (string IP){
Return
1.Special Symbols and characters1.1 Single Regex 1. , Match any character (except \ n)^, Match start of string$, Match end of string*, Match 0 or more occurrences preceding regex+, Match 1 or more occurrences preceding regex? , Match 0 or 1
The regular expression is a very flexible language, matching the same string may be different developers will get different results, in the ordinary time is also used when the relevant information, not when it is left behind the brain, although in
C # Use of the regular expression Regex class,
C # provides a very powerful function for the use of regular expressions, which is the Regex class. This package is included in the System. Text. RegularExpressions namespace. Basically, the DLL of this
The study of PHP regular expressions is a very powerful tool. we may use it anywhere...
Regular expressions are a very powerful tool. we may use them anywhere...I have worked hard on regular expressions, but I still forget it after a long time...Let'
1. All parameters in front of the try_files parameters are matched, the last parameter is overridden, and then the internal is executed redirect2. Two matches are preceded by a prefix string match, followed by a Regex match, and the regex match is
A group in a regular expression is a very important concept. It serves as a bridge to an advanced Regular Expression application.
Group concept
The matching result of a regular expression can be divided into multiple parts, which is the purpose
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.