current location: Home > Download > Learning resources > Web page production > Most commonly used regular expressions
Most commonly used regular expressions
Classify: Learning materials / Web page production | Release time: 2018-02-08 | visits: 2875206 |
Download: 240 |
Latest Downloads
Fantasy Aquarium
Girls Frontline
Wings of Stars
Little Flower Fairy Fairy Paradise
Restaurant Cute Story
Shanhe Travel Exploration
Love and Producer
The most powerful brain 3
Odd Dust: Damila
Young Journey to the West 2
24 HoursReading Leaderboard
- 1 How to Exclude Go Source Files Based on Architecture During Compilation?
- 2 Can MySQL JSON Fields Be Used for Table Joining?
- 3 djsalert.loc - What is djsalert.loc?
- 4 Why Isn\'t My Python `main()` Function Running?
- 5 How to Convert Timestamps to Human-Readable Dates and Times in PHP?
- 6 dlbkcoms.exe - What is dlbkcoms.exe?
- 7 Is Declaring Global Variables Inside Functions Without \"var\" a RAM Optimization Strategy?
- 8 When and Why Are Parentheses Used in C Variable Declarations?
- 9 Why am I getting \"too many arguments\" when passing a struct to a function?
- 10 How do I fix the \"415 Unsupported Media Type\" error in my Jersey REST service when sending JSON data in POST requests?
- 11 dll32phi.dll - What is dll32phi.dll?
- 12 How does std::bind handle member functions, and why is an object reference required?
- 13 Does MinGW-w64 with the Win32 threading model support std::thread natively?
- 14 Why Can\'t My Go Webserver Play MP4 Videos?
- 15 How to Split Keywords for Database Optimization: An Efficient PHP and MySQL Approach?
Latest Tutorials
-
- Go language practical GraphQL
- 1932 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 3349 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 1755 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 2568 2024-03-29
1. Expression of check digits
1 Number: ^[0-9]*$
2 n-digit number: ^\d{n}$
3 A number of at least n digits: ^\d{n,}$
4 m-n digit number: ^\d{m,n}$
5 Numbers starting with zero and non-zero: ^(0|[1-9][0-9]*)$
6 Numbers starting with non-zero and with up to two decimal places: ^([1-9][0-9]*)+(.[0-9]{1,2})?$
7 Positive or negative numbers with 1-2 decimal places: ^(\-)?\d+(\.\d{1,2})?$
8 Positive numbers, negative numbers, and decimals: ^(\-|\+)?\d+(\.\d+)?$
9 Positive real numbers with two decimal places: ^[0-9]+(.[0-9]{2})?$
10 Positive real numbers with 1~3 decimal places: ^[0-9]+(.[0-9]{1,3})?$
11 Non-zero positive integer: ^[1-9]\d*$ or ^([1-9][0-9]*){1,3}$ or ^\+?[1-9][0 -9]*$
12 Non-zero negative integers: ^\-[1-9][]0-9"*$ or ^-[1-9]\d*$
13 Non-negative integers: ^\d+$ or ^[1-9]\d*|0$
14 Non-positive integers: ^-[1-9]\d*|0$ or ^((-\d+)|(0+))$
15 Non-negative floating point number: ^\d+(\.\d+)?$ or ^[1-9]\d*\.\d*|0\.\d*[1-9]\d*|0? \.0+|0$
16 Non-positive floating point number: ^((-\d+(\.\d+)?)|(0+(\.0+)?))$ or ^(-([1-9]\d*\.\ d*|0\.\d*[1-9]\d*))|0?\.0+|0$
17 Positive floating point number: ^[1-9]\d*\.\d*|0\.\d*[1-9]\d*$ or ^(([0-9]+\.[0- 9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9] *[1-9][0-9]*))$
18 Negative floating point number: ^-([1-9]\d*\.\d*|0\.\d*[1-9]\d*)$ or ^(-(([0-9]+ \.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|( [0-9]*[1-9][0-9]*)))$
19 Floating point number: ^(-?\d+)(\.\d+)?$ or ^-?([1-9]\d*\.\d*|0\.\d*[1-9]\ d*|0?\.0+|0)$