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: 2875267 |
Download: 240 |
Latest Downloads
Red Alert Online
Delta Force
Pokémon UNITE
Fantasy Aquarium
Girls Frontline
Wings of Stars
Little Flower Fairy Fairy Paradise
Restaurant Cute Story
Shanhe Travel Exploration
Love and Producer
24 HoursReading Leaderboard
- 1 How to Handle "Cannot Implicitly Convert DBNull to Int" Errors in C#?
- 2 Why is TypeScript Better Than JavaScript
- 3 Printing HTML best technique with sample receipt.
- 4 Understanding the Basics of API Development.
- 5 How to Handle Null Values When Assigning to a SqlParameter in C#?
- 6 Sending logs to Telegram. Module for Laravel
- 7 How to Avoid "No implicit conversion from DBNull to int" Errors When Handling Nullable SQL Server Parameters?
- 8 How Can We Avoid Mixing UI Logic and Data Access in SQL Queries?
- 9 How Can We Avoid the Pitfalls of Mixing UI Logic and Data Access in SQL Queries?
- 10 How Can We Avoid Mixing UI Logic with Data Access in SQL Queries?
- 11 Var vs. Dynamic in C# 4: What's the Difference?
- 12 Task.Start/Wait vs. Async/Await: What's the Difference in Handling Long-Running Operations?
- 13 Does SQL Server Roll Back Entire Transactions on Error in Batched Commands?
- 14 How to Generate a Date Range Array or List in C#?
- 15 Different Ways to Fetch Data from APIs Using `useEffect` in React
Latest Tutorials
-
- Go language practical GraphQL
- 2481 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 3879 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 2071 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 2845 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)$