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: 2875282 |
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 Can I Implement Simple, Yet More Secure Two-Way Data Encryption in .NET 2.0?
- 2 How to Elegantly Build Query Strings in C#?
- 3 How Can I Elegantly Build Query Strings in C#?
- 4 How to Efficiently Construct Query Strings in C#?
- 5 How Can AES Encryption Enhance Data Security in .NET Applications?
- 6 control flow statement ?
- 7 How Can I Easily and Securely Obscure Data Using the .NET Framework 2.0?
- 8 How Can AES Encryption Secure Two-Way Data Obscuration in C#?
- 9 How Can I Easily Obfuscate Data in .NET 2.0 Without Using Strong Encryption?
- 10 How to Create a Disappearing Watermark in a WPF TextBox Using Attached Properties?
- 11 JavaScript Closures
- 12 How to Create a TextBox Watermark Using Attached Properties in WPF?
- 13 How can I implement a disappearing watermark in a TextBox using WPF?
- 14 Quick Cookie Management Tips
- 15 Why I Want to Be a Front-End Developer and How HNG Will Help Me Achieve My Goals
Latest Tutorials
-
- Go language practical GraphQL
- 2633 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 4017 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 2155 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 2936 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)$