Only numbers can be entered: "^ [0-9] * $"
Only n digits can be entered: "^ \ D {n} $"
You can only enter at least N digits: "^ \ D {n,} $"
Only M-N digits can be entered: "^ \ D {m, n} $"
Only numbers starting with zero and non-zero can be entered: "^ (0 | [1-9] [0-9] *) $"
Only positive numbers with two decimal places can be entered: "^ [0-9] + (. [0-9] {2 })? $"
You can only enter a positive number with 1-3 decimal places: "^ [0-9] + (. [0-9] {1, 3 })? $"
Only a non-zero positive integer can be entered: "^ \ +? [1-9] [0-9] * $"
Only a non-zero negative integer can be entered: "^ \-[1-9] [0-9] * $"
Only 3 characters can be entered: "^. {3} $"
You can only enter a string consisting of 26 English letters: "^ [A-Za-Z] + $"
Only a string consisting of 26 uppercase letters can be entered: '^ [A-Z] + $"
You can only enter a string consisting of 26 lower-case English letters: "^ [A-Z] + $"
You can only enter a string consisting of a number and 26 English letters: '^ [A-Za-z0-9] + $"
Only a string consisting of digits, 26 English letters, or underscores can be entered: "^ \ W + $"
Verify the User Password: "^ [A-Za-Z] \ W {5, 17} $". The correct format is: starts with a letter and ranges from 6 to 18,
It can only contain characters, numbers, and underscores.
Check whether ^ % & ',; =? $ \ "And other characters:" [^ % & ',; =? $ \ X22] +"
Only Chinese characters can be entered: "^ [\ u4e00-\ u9fa5], {0,} $"
Verify email address: "^ \ W + [-+.] \ W +) * @ \ W + ([-.] \ W + )*\. \ W + ([-.] \ W +) * $"
Verify interneturl: "^ http: // ([\ W-] + \.) + [\ W-] + (/[\ W -./? % & =] *)? $"
Verification phone number: "^ (\ D {3, 4} \) | \ D {3, 4 }-)? \ D {7, 8} $"
Correct format: XXXX-XXXXXXX, XXXX-XXXXXXXX, XXX-XXXXXXX ",
XXX-XXXXXXXX, xxxxxxx, XXXXXXXX ".
Verify the ID card number (15 or 18 digits): "^ \ D {15} | \ D {} 18 $"
12 months of verification: "^ (0? [1-9] | 1 [0-2]) $ "the correct format is:" 01 "-" 09 "and" 1 "" 12"
31 days of verification for a month: "^ (0? [1-9]) | (1 | 2) [0-9]) | 30 | 31) $"
The correct format is "01", "09", and "1", "31 ".
Dangerous character '%> </= Filtering: onkeyup = "value = value. replace (/[\ '\ % \ >\< \/\ =] +/, '')" onbeforepaste = "clipboardData. setdata ('text', clipboardData. getdata ('text '). replace (/[\ '\ % \> \ <\/\ =] + /,''))"