JavaScript is a form of knowledge aggregation

Source: Internet
Author: User

Js Regular Form Knowledge summary

The form is:

1. What is RegExp? RegExp is an abbreviation for the regular form. The RegExp object is used to specify what is retrieved in the text.

2, define Regexp:var + variable name =new RegExp ();

3. The RegExp object has 3 methods:

1) test () retrieves the specified value in the string, and the return value is true or false.

var p1=new Reg ("E");d Ocument.write (Reg.test ("Welcome to china!"));

2) EXEC ()

var p1=new Reg ("E");d Ocument.write (Reg.exec ("Welcome to china!"));

3) Compile ()

var p1=new Reg ("E");d Ocument.write (Reg.compile ("Welcome to china!"));

4. Modifier

1) I run an insensitive match to uppercase and lowercase

2) G run Global match

3) m run multi-line match

5. Square brackets (used to find characters in a range)

1) [ABC] find the square brackets regardless of the character

2) [^ABC] Find characters that are not square brackets

3) [0-9] Find no matter what the number between 0-9

4) [A-z] find characters that are no matter what lowercase a-Z

5) [A-z] find characters that are between uppercase and A-Z

6) [A-z] look for characters that are between uppercase and lowercase Z

7) [ADGK] finds whatever character within a given set

8) [^ADGK] finds whatever character is outside the given set

9) (Red|biue|green) Find no matter what the given option

6, Meta-character

1) \w: Find word characters

2) \w: Find non-word characters

3) \d: Find numbers

4) \d: Find non-numeric characters

7. quantifier

n+ matches whatever is included at least one n string.

n matches a string of 0 or more n regardless of what is included.



N Match whatever contains 0 or one n strings.



N{x} matches a string that includes a sequence of X N.



N{x,y} matches a string that includes a sequence of X or Y N.

N{x,} matches a string that includes at least X N of the sequence.



n$ matches whatever string ends with N.

^n matches whichever string begins with N.



? =n matches whatever string followed by the specified string n.



?! n matches whatever is not followed by a string with the string n specified immediately thereafter.



"Exercise 1" infers if the input ID is in the correct format

<body><label> Enter your ID number: </label><input name= "" type= "text" id= "Shenfen"/><input name= "" Type= "Submit" id= "Textfi" value= "Submit 1" onclick= "Test ()"/><!--commit button, trigger function--></body>




"Exercise 2" infers that the mailbox you entered is correctly formatted

<body><label> Please enter your e-mail: </label><input name= "" type= "text" id= "Youxiang"/><input name= "" Type= "Submit" value= "Commit 2" onclick= "Y ()"/></body>





Relatively speaking. JS is a very important point in the form of the expression. Very many places need to cooperate with the regular, so the small partners must learn this piece of content.

Source of references:
Js-Regular form
Http://www.lai18.com/content/351738.html

Extended Reading

JavaScript is the form of a series of technical articles to organize the collection

1 A good example of the regular form-learning regularization used in the Forum's repost tool

The Replace method of 2JS and the application explanation of the combination of the normal form

3javascript Replace method and normal form

4 Regular table inference whether there are Chinese and full-width characters and inferences including Chinese string lengths

5trim prototype function to see the performance of JS-normal form

6 Dynamic Creation/addition of CSS style script compatible with IE Firefox

7javascript gets the regular form within the first slash in the address of the link file

8Mootools 1.2 Tutorials the right form

Realization method of using array cache to implement the form in 9javascript

10JavaScript Learning Notes (14) Regular form

11javascript Normal-form trigger function for advanced substitution

12 matching arbitrary characters with the regular form notation

13javascript normal form (i)

14js Various validation text box input format (normal form)

The role of the parameter G (global) in the 15javascript normal form

16js Replace function function. Use the regular form to solve all the substitutions of JS

17 Regular Summary: regular form in JavaScript

18javascript Learning Notes (v) Regular form

Global matching pattern analysis of 19Javascript in the universal form

20PHP matches consecutive numbers or letters in regular form

Description of the regular form in 21jquery

22 Frequently used JavaScript expressions

23JavaScript the difference of the browser of the normal form

24jQuery Source Code Analysis-02 regular form REGEXP regular expressions are used

25javascript Advanced article 1 regular form, cookie management, UserData

26 getting the data from the server use JS to go to the normal form of the space

27js Normal Table type

28javascript Learning Notes (11) Introduction to the regular form

29js inferred number \ letter \ Chinese normal form (instance)

30js Limit text box can only enter a number (normal form)

31Java Regular Form Learning summary and some sample examples

32JavaScript Advanced Programming (3rd Edition) Learning Note js Normal form

The 33javascript is an introduction to the relevant table

34 Useful JS Regular form (mobile phone number/IP regular/ZIP code/Phone, etc.)

35JS Replace regularization application case explanation

36 Regular table with JS easy to handle JSON text convenient and old ancient

3,730-minute introductory basic tutorial on Getting Started

38 How to format XML content by using JavaScript as a form of expression

Specific explanations for the use of the 39JS regular form

40Jquery Validate Useful Validation code Daquan

41jquery frequently used to see the form of the expression

42jquery MACTH Case

43jQuery regular form of use

44JQuery Digital type validation normal form

Summary of the regular form of the 45jQuery time format of Lieutenant Colonel

46js writing trim () function and the use of regular form

47JS frequently use regular table to summarize

48js implementing method of turning a string into a regular table

49JS Regular Table-type Daquan (collation specific and useful)

50JS Regular table to get the method of grouping content specific explanation

51js validate forms with regular expressions (more complete resources)

52javascipt matching single-line and multiline gaze in the normal form

53 Replace the image address with a regular table img tag

54 frequently used JavaScript validation form summary

55 Summary of several methods of the special symbols and the normal form in the form of the normal expression (Replace,test,search)

The normal form in 56JavaScript

57JS verification phone number and phone support +86 of the regular form

58 using the JS form to verify the mobile phone number, email address, zip code

59JS regular Form-proof digital code

Description of difference of Test,exec,match method in 60js normal form

61 implementing form validation with a regular form to verify that the forms are Chinese

62js Dynamic splicing Two methods of the normal form

63JavaScript implementing form validation phone numbers with a regular form

64JavaScript Forms Verify phone numbers by means of a regular form

Concise summary of the regular form in 65JavaScript

66JS searching and replacing instances of strings using the Replace () method and the regular form

67javascript frequently used regular form examples

68node.js to get a code instance of all links in a Web page

69JavaScript using the regular table to remove the date-

70 Delete the regular form of gaze statements in JavaScript

71JavaScript using the "-" in the regular form of the removal date

72javascript regular/g Reference guide for use with/I and/gi

73JS applying the normal form to convert uppercase and lowercase demo samples

74javascript Learning Notes (eight) regular form

75 a few instances of the regular form in JavaScript

76javascript normal form-test

77 using js+ to add a link to a keyword

78 Regular Expressions in JavaScript applications

79 Complete verification of forms with regular forms and JavaScript

80 example Analysis JS and C # Use a regular table to match a label

81Js Regular Form Knowledge summary

82javascript using a regular form to detect IP addresses

83 formatting and highlighting JSON strings using regular expressions

Use DOM manipulation in 84jQuery instead of regular form

85javascript normal Form search () example of Use method

86javascript a method to replace a phone number with replace ()

87jquery method of verifying an email address using the regular form

88 debugging JavaScript problems encountered in the form of an expression

89javascript using the normal form to implement the character after removing the space

Guidelines for using the normal form in 90javascript

91Javascript regularization implementation to add thousands separators to numbers

92 "JavaScript" uses the regular form to check if the input box is a URL

93jQuery get the name of the uploaded file in normal form

94 A brief description of the usage of the JavaScript in the form of expressions

The ignorecase attribute in the 95JavaScript normal expression uses the specific explanation

96 specifically explains the use of the global attribute in JavaScript's normal form

97 using the Exec () method in the regular form of JavaScript

98 Brief Introduction to the use of the test () method in the regular form of JavaScript

Application of the multiline attribute of the 99JavaScript normal form

JavaScript is a form of knowledge aggregation

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.