Searchfiles.html
Alibaba Cloud's search engine
Enter entries or keywords Type = "submit" value ="Search">
Searchfiles. aspSearchTerm = request. form ("term ")Novalid = "a B c d e f g h I j k l m n o p q r s t u v w x y z yes no
.
Match any character except linefeed
\ W
Match letters, numbers, underscores, and Chinese characters
\ S
Match any blank space character
\ D
Matching number
^
Start position of matching characters
Common functions: strstr ($ str, "abc ");Regular Expression match preg_match ("/(abc )? /Is ", $ str );However, to match a string that does not contain a specific string, it is more difficult to use regular expressions.If you do not need regular
Character
Description
\
Mark the next character as a special character, a literal character, or a backward reference, or an octal escape character. For example, 'n' matches the character "n ". '\ N' matches a line break. The sequence '
Character/Meaning: For characters, it usually indicates the literal meaning, indicating that the subsequent characters are special characters, not explained.For example:/B/matches the character 'B'. By adding a backslash (/B/) before B, the
Next we will talk about the use of regular expressions labeled with "g". First, let's look at a piece of code to make it easier to understand from the example.Copy codeThe Code is as follows:1 function a (val)2 {3 var re =/^ \ d + $/g;4 alert (re.
The Regular Expression provides an efficient and convenient method for string mode matching. Almost all advanced languages support regular expressions or provide ready-made code libraries for calling. This article describes the application skills of
Regular Expressions and related links
Http://blog.csdn.net/laily/category/19548.aspxHttp://blog.csdn.net/laily/archive/2004/06/30/30525.aspx Microsoft Regular Expression tutorial (5): Select/group and Back ReferenceHttp:
Using JS to highlight the specified keyword in the article content is like this .. now we have these keywords: beauty, life, and shopping. When these keywords appear in articles, we will highlight them .. the article generates static pages, and
Difficult to write regular expressions and complex syntaxes make it difficult for scholars to come into contact. To solve this problem, I decided to invite you to develop HyperScriptExpression (HSE for short) with me ). HSE is all Marked in the form
Copy codeThe Code is as follows:/**** Author: site120** Function: get script part from html document**/Var loadJs = function (str, delayTime){Var delayTime = delayTime | 100;Var regExp_scriptTag = new RegExp ("] *)> ([\ s \ S] *?) "," gi ");Var
From: www.regexlab.comIntroduction
This article will gradually discuss the use of regular expressions. This article is an extension of the Base article on this site. Before reading this article, we recommend that you read the regular expression
Ideas• Use the regular expression "(? X )(? : [\ W-] + | [\ x80-\ xff] {3}) "to obtain a list of English words and Chinese characters in the UTF-8 document.• Use dictionary to record the frequency of occurrence of each word or Chinese character. If
Java regular expressions provide a wide range of class libraries, greatly simplifying this process. Common basic syntaxes are listed below:* +? ^ $ [] () |/\ D \ D \ w \ W {} {n, m}, etc,Note the "|" or symbol. It can match a single character and a
Function: $1-$9 stores the matching results of the last nine regular expressions in the regular expression. These results are arranged in sequence according to the occurrence order of the submatching.Basic syntax RegExp. $ nNote: These attributes
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service