Regular Expression of phone number (mobile phone number, 3-4 area code, 7-8 live video number, 1-4 extension code)
(\ D {11}) | ^ (\ d {7, 8}) | (\ d {4} | \ d {3})-(\ d {7, 8 }) | (\ d {4} | \ d {3})-(\ d {7, 8 }) -(\ d {4} | \ d {3} | \ d {2} | \
5.8. hexadecimal. 2
5.8.1 hexadecimal
DescriptionIn hexadecimal notation, we will first ask: there are only 10 Arabic numerals in total: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9, how can we express the concept of "every 16 to 1? The method is to use English
A regular expression is a text pattern that includes ordinary characters (for example, letters between A and z) and special characters (called "metacharacters"). The pattern describes one or more strings to match when searching for text.
1. Basic
1. Basic Grammar of regular expressions
Two special symbols ' ^ ' and ' $ '. Their role is to point out the beginning and end of a string, respectively.
Examples are as follows:
"^the": denotes all strings starting with "the" ("There", "the Cat",
Usually do the site to use regular expression, the following is a number of explanations and examples, only for everyone to reference and modify the use of:
"^\d+$"//non-negative Integer (positive integer + 0)"^[0-9]*[1-9][0-9]*$"//Positive integer"^
The example in this article describes the method of the jquery plug-in formvalidator custom function extension. Share to everyone for your reference, specific as follows:
jquery Formvalidator What is a form verification plug-in? Interested readers
This article reprinted address : http://www.cnblogs.com/zuoxiaolong/p/computer11.html2.6 We have a binary integer operation of the last battle, this LZ will join you into the floating point of the world, there is no unsigned, no complement, but
1. Trim (STR) -- remove spaces on both sides of the string
2. xmlencode (STR) -- encode the string in XML format.
3. showlabel (STR, STR) -- mouse prompt function (display character, prompt character)
You can set the font, color, size,
Save the following code as Common. js
Class library function:
1. Trim (str) -- remove spaces on both sides of the string
2. XMLEncode (str) -- encode the string in XML format.
3. ShowLabel (str, str) -- mouse prompt function (display character,
Using system. Text. regularexpressions;
# Region signature string/// /// Judge the type of characters that contain the delimiter/// /// string /// type of the certificate /// 1: A string consisting of 26 English letters/// 2: positive number/// 3:
Usually do the site often to use regular expressions, the following are some explanations and examples, only for everyone to refer to and modify the use of:
"^\d+$"//non-negative Integer (positive integer + 0)
JS verifies the number of regular expressions
The code is as follows
Copy Code
function IsTrue (a) {var reg=/^ ([a-z]+[0-9]+) | ( [0-9]+[a-z]+)] [a-z0-9]*$/i;Return Reg.test (a);} function IsNumeric (a){var reg=/^ (-|+)
Single-precision floating-point numbers are 4 bytes (32bit) representing floating point numbersUses the IEEE754 standard computer floating-point number, in the interior is uses the binary system to representFor example: 7.22 with a 32-bit binary is
The IEEE binary floating-point Number Arithmetic standard (IEEE 754) is the most widely used standard for floating-point operators since the 1980s, and is used by many CPUs and floating-point operators. IEEE 754 provides four ways to represent
Python BASICS (10)-numbers, python basics-Numbers
The topic of this article is numbers in Python. Describes each numeric type in detail, the various operators they apply, and the built-in functions used to process numbers. At the end of the article,
Have a friend complete a number of JS and jquery numeric type validation regular expression code, below I give you to tidy up here, including the implementation of digital verification and test examples, we can refer to. JS validation number regular
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.