The metacharacters of regular expressions are characters that contain special meanings, and they have special functions that control how the pattern is matched, and the meta-character after the backslash loses its special meaning.
single character and number
.Represents a single character that matches a line break except for a newline character, and two . indicates a match of two charactersvar pattern1=/g.gle/; alert(pattern1.test(‘gogle‘))//true alert(pattern1.test(‘g\ngle‘))/
. 4. split () according to the specified "match" Split 1 alert (B. split (pattern); // This is ,! It is a small. The static and instance methods of regular expressions are not introduced here. Because they are not commonly used, they are used for query. 4. acquisition and control (* Key Points) 1. match a single character and number. The following Code demonstrates how to copy the Code 1 var pattern =/[a-z] oogle /; // [a-z] indicates any 2 alert (pat
/;//. {N,m} indicates a match N to M containing N and M varstr = ' Gbbbbgle '; Alert (Pattern.test (str)); varpattern =/g.{2}gle/;//. {n} indicates a match n is greater than or less than N is false varstr = ' Gbbbbgle '; Alert (Pattern.test (str)); varpattern =/g.{2,}gle/;//. {n,} means match n or more than n less than n is false varstr = ' Gbbbbgle '; Alert (Pattern.test (str)); /*using character class matching*/ varpattern= /G[a-za-z_]*gle/; //[a-z]* denotes any ch
1 varPattern=/g. gle/;//dot symbol to match any character except line break2 varStr= ' G78gle ';3 Alert (pattern.test (str));4 5 6 varpattern=/go*gle/;//o*, representing 0 or more o7 varStr= ' Goooooooooooogle ';8 Alert (pattern.test (str));9 Ten varpattern=/go+gle/;//o+, indicating one or more o One varStr= ' Gogle '; A Alert (pattern.test (str)); - - the varpattern=/go?gle/;//O, indicates 0 or 1 o - varStr= ' Google '; - Alert (pattern.test (str)); - + varpattern=/go{2,4}gle/;//o{2,4}, whic
upload it to the Google Cloud server while editing a document, creating a dedicated link. Users can send this link to other people or on other devices (such as IP AD) through G Oogle Docs (Google Docs) to open the link. With G Oogle cloudconnect, users need not upgrade O ffice or deploy SharePoint 2010 to share and edit O ffice documents together.
Can edit the same document across terminals
G oogled OC
expression meta-character is a character that contains special meanings. They have some special features that control how the pattern is matched. Metacharacters after the backslash will lose its special meaningThere are red lines in the classification of the Red Line is more commonly used, no red line classification is more commonly used. The metacharacters of these classifications can be used together, for special characters (such as-,., etc.) to be escaped with "\"var pattern =/[a-za-z0-9]
goooooogle in front of OO may be o, for example: Go (ooo) Oogle, so this line is also in line with the demand!Continuous character class: Again, suppose I don't want to have a small write section in front of Oo, so I can write [^abcd....z]oo, but this doesn't seem so convenient, because the order of encoding on the ASCII of lowercase bytes is sequential, so we can simplify it to the bottom:[[email protected] ~]# grep-n ' [^a-z]oo ' Regular_express.tx
goooooogle in front of OO may be o, for example: Go (ooo) Oogle, so this line is also in line with the demand!Continuous character class: Again, suppose I don't want to have a small write section in front of Oo, so I can write [^abcd....z]oo, but this doesn't seem so convenient, because the order of encoding on the ASCII of lowercase bytes is sequential, so we can simplify it to the bottom:[[email protected] ~]# grep-n ' [^a-z]oo ' Regular_express.tx
), so it is in line with string search Oh!As in line 19th, the same is true because goooooogle in front of OO may be o, for example: Go (ooo) Oogle, so this line is also in line with the demand!Continuous character class: Again, suppose I don't want to have a small write section in front of Oo, so I can write [^abcd....z]oo, but this doesn't seem so convenient, because the order of encoding on the ASCII of lowercase bytes is sequential, so we can simp
(goo) but because of the need for the project (too), so it is in line with string search Oh!As in line 19th, the same is true because goooooogle in front of OO may be o, for example: Go (ooo) Oogle, so this line is also in line with the demand!Continuous character class: Again, suppose I don't want to have a small write section in front of Oo, so I can write [^abcd....z]oo, but this doesn't seem so convenient, because the order of encoding on the ASC
goooooogle in front of OO may be o, for example: Go (ooo) Oogle, so this line is also in line with the demand!Continuous character class: Again, suppose I don't want to have a small write section in front of Oo, so I can write [^abcd....z]oo, but this doesn't seem so convenient, because the order of encoding on the ASCII of lowercase bytes is sequential, so we can simplify it to the bottom:[[email protected] ~]# grep-n ' [^a-z]oo ' Regular_express.tx
Before XMLHttpRequestLevel2 was introduced, most asynchronous images were uploaded using iframe. As for the specific implementation details, I am not here ?? Module? Oogle has an article to talk about. This time I will talk about how to use a new API to upload images. First,... SyntaxHighlighter. all (before XMLHttpRequest Level2 was introduced, most asynchronous upload images were implemented using iframe. As for the specific implementation details,
same owner is displayed.
4. If neither of the above steps works, you can in the http://just-ping.com/
Enter g.cn, use the server of the website to obtain the ping result, search for the result with China, and search for the result with the Sina IP database above.
------------------------------------------------------------------
After a long time, I only used
NSLookup g.cn
Find the fastest IP
It may not be the same every time.
I found that at Guangzhou Telecom
Http: // 203.2
has OO, but do not want to have g in front of Oo, the following[[email protected] ~]# grep-n ' [^g]oo ' regular_express.txt2:apple is my favorite Food.3:football game was not use feet onl Y.18:google is the best tools for search Keyword.19:goooooogle yes!2nd, 3 lines no doubt, because Foo and foo can be accepted!But the 18th line has Google's goo Ah ~ Don't forget, because the line behind the tool too ah! So the line is also listed-that is, 18 lines inside although we do not have the item (goo)
-that is, 18 lines inside although we do not have the item (goo) but because of the need for the project (too), so it is in line with string search Oh!As in line 19th, the same is true because goooooogle in front of OO may be o, for example: Go (ooo) Oogle, so this line is also in line with the demand!Continuous character class: Again, suppose I don't want to have a small write section in front of Oo, so I can write [^abcd....z]oo, but this doesn't se
goooooogle in front of OO may be o, for example: Go (ooo) Oogle, so this line is also in line with the demand!Continuous character class: Again, suppose I don't want to have a small write section in front of Oo, so I can write [^abcd....z]oo, but this doesn't seem so convenient, because the order of encoding on the ASCII of lowercase bytes is sequential, so we can simplify it to the bottom:[[email protected] ~]# grep-n ' [^a-z]oo ' Regular_express.tx
goooooogle in front of OO may be o, for example: Go (ooo) Oogle, so this line is also in line with the demand!Continuous character class: Again, suppose I don't want to have a small write section in front of Oo, so I can write [^abcd....z]oo, but this doesn't seem so convenient, because the order of encoding on the ASCII of lowercase bytes is sequential, so we can simplify it to the bottom:[[email protected] ~]# grep-n ' [^a-z]oo ' Regular_express.tx
goooooogle in front of OO may be o, for example: Go (ooo) Oogle, so this line is also in line with the demand!Continuous character class: Again, suppose I don't want to have a small write section in front of Oo, so I can write [^abcd....z]oo, but this doesn't seem so convenient, because the order of encoding on the ASCII of lowercase bytes is sequential, so we can simplify it to the bottom:[[email protected] ~]# grep-n ' [^a-z]oo ' Regular_express.tx
goooooogle in front of OO may be o, for example: Go (ooo) Oogle, so this line is also in line with the demand!Continuous character class: Again, suppose I don't want to have a small write section in front of Oo, so I can write [^abcd....z]oo, but this doesn't seem so convenient, because the order of encoding on the ASCII of lowercase bytes is sequential, so we can simplify it to the bottom:[[email protected] ~]# grep-n ' [^a-z]oo ' Regular_express.tx
(Str.match (pattern));//box,box, matching to two Boxalert (Str.match (pattern). length);//2, get array lengths/* Use Search to find matching data */ var pattern =/box/ig;//Global case-insensitive search. Notice that the search method finds the return, which means that G is dispensable. var str = ' This is abox! That's a box too! '; Alert (Str.search (pattern));//10, find the return position, or return-1/* Replace the matching data with replace */var pattern =/box/ig;var st
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.