the grammar of a location
Locltion can position requests in different ways to a different approach (the individual feels a bit like the filter in Java)1.1location Classification and usage
Location is broadly divided into three categories:
Location =
Syntax rules: location [=|~|~*|^~]/uri/{...}= The beginning indicates an exact matchThe beginning of the ^~ indicates that the URI begins with a regular string and is understood to match the URL path. Nginx does not encode the URL, so the request is/
Sed
SED is a powerful text-processing tool
You can use a regular match to insert the text to delete changes, and so on
When SED is processed, one line is processed at a time, each time the current processing is stored in a temporary buffer, the
This time grabbed 1.1 million of the user data, the data analysis results are as follows:
Pre-development preparation
Install the Linux system (Ubuntu14.04) and install an Ubuntu under the VMware virtual machine;
Install PHP5.6 or above
Syntax rules: location [=|~|~*|^~]/uri/{...}
= The beginning indicates an exact match
The beginning of the ^~ indicates that the URI begins with a regular string and is understood to match the URL path. Nginx does not encode the URL, so the request
Learn JavaScript regular Good Article one: http://www.cainiao8.com/web/js_note/js_regular_expression.html
Test : Tests whether string contains a matching result, contains return true, and does not contain return false.
Match: A regular match
Syntax rules: location [=|~|~*|^~]/uri/{...}= The beginning indicates an exact matchThe beginning of the ^~ indicates that the URI begins with a regular string and is understood to match the URL path. Nginx does not encode the URL, so the request is/
Https://www.cnblogs.com/linjiqin/p/5532119.html
Location syntax Syntax: location [=|~|~*|^~]/uri/{...}
=--> beginning indicates exact match
The beginning of the ^~--> indicates that the URI begins with a regular string and is understood to match
Reference Blog: 50129009Common LOGCAT commands are as follows:Output log to 123.txtADB logcat-v time > 123.txtTime "format:" DateTime priority/label (process ID): Process name: Log information adb logcat-v time "long" format: "[datetime process ID:
Recent presentation of data analysis results. Purpose: Save in, take out, seemingly simple actually not easy. After these days of unremitting efforts finally found the middle-class HBase key design method. Key Design: Time + Type one + type two +
\d metacharacters + quantifiers \w commonly used characters a-za-z0-9. Characters other than carriage return? 0-1 character quantifier Only the preceding is a meta-character, the quantifier * 0-n quantifier/^\d+$/begins with a character, the end of
Program Design ideas: 1. Use Os.walk () to find all the files; 2. Use the regular to locate the specified suffix file; 3. After finding the required TXT file, read each row of data in the file via open (). ReadLines (). 4. After reading, save the
1. Obtain the remote file source code (file_get_contents or fopen ).2. Analyze the code to get the content you want (regular match is used here, And paging is generally used ).3. Download and import the content obtained from the root, and perform
In the previous blog in the cottage of Sina Weibo, in the following blog will be on the previous code optimization and reuse, the text of the previous microblogging request has not been processed, such as with the expression of the text is such a "I
Syntax rule: Location [= | ~ | ~ * | ^ ~] /Uri /{... } = Indicates exact match.
^ ~ It indicates that the URI starts with a regular string and is understood as a URL path. Nginx does not encode the URL, so the request is/static/20%/AA and can be
ArticleDirectory
3 websites that detect browser User-Agent Information
3 websites that detect browser User-Agent Information
Judgment Principle:
Javascript is the main language for front-end development. We can compile
Some mistakes in children's shoes1. Location The matching order is "match first, then match normal". Correction: The location of the matching order is actually "first match the normal, then match the regular." I say so, we will certainly refute me,
In-depth exploration of JavaScript String objects
This article gives you a detailed introduction to the String object in javascript, the definition method, instance attributes, and instance methods. It is very detailed and comprehensive. I would
Nginx: location details, nginxlocation detailsNginx. conf
// Worker_processes 1 in the global zone; // a child process with one job can be modified on its own, but it is not helpful because it is necessary to compete for the CPU, generally set to
This article mainly introduced the Python regular expression in the greedy/non-greedy characteristics of the relevant data, the text through the sample code introduced in a very detailed, for everyone has a certain reference value, the need for
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.