Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Collect and organize what regular expressions are commonly used in ASP.NET

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the collection and collation of regular expressions commonly used in ASP.NET which have a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to understand it.

"^ / positive $" / / non-negative integer (positive integer + 0)

"^ [0-9] * [1-9] [0-9] * $" / / positive integer

"^ (- / d+) (0 +) $" / / non-positive integer (negative integer + 0)

"^-[0-9] * [1-9] [0-9] * $" / / negative integer

"^ -? / dumped $" / / Integer

"^ / d + (/. / d +)? $" / / non-negative floating point number (positive floating point number + 0)

"^ (([0 # 9] + /. [0 # 9] * [1 # 9] [0 # 9] *) ([0 # 9] * [1 # 9] [0 # 9] * /. [0 # 9] +) ([0 # 9] * [1 # 9] [0 # 9] *) $" / / positive floating point number

"^ (- / d+ (/. / d+)?) (0 + (/ .0 +)?) $" / / non-positive floating point number (negative floating point number + 0)

"^ (- ([0-9] + /. [0-9] * [1-9] [0-9] *) ([0-9] * [1-9] [0-9] * /. [0-9] +) ([0-9] * [1-9] [0-9] *)) $" / / negative floating point number

"^ (-? / d +) (/. / d +)? $" / / floating point number

"^ [A-Za-z] + $" / / A string of 26 letters

"^ [Amurz] + $" / / A string of 26 English letters in uppercase

A string of 26 lowercase letters consisting of "^ [amurz] + $" / /

"^ [A-Za-z0-9] + $" / / A string of numbers and 26 letters

A string of numbers, 26 letters, or underscores

"^ [/ w -] + (/ .[ / w -] +) * @ [/ w -] + (/. [/ w -] +) + $" / / email address

"^ [a-zA-z] +: / / (/ w + (- / w +) *) (/. (/ w + (- / w +) *)) * (/? / S*)? $" / / url

^ [a-zA-Z] [a-zA-Z0-9 _] {515} $/ / verify the regular formula of the user name, which must start with a letter and can only include letters / numbers / underscores. The total length requirement is 6'16 digits.

^ [1-9] ([0-9] {16} | [0-9] {13}) [xX0-9] $/ / ID card (15-18 digits, which does not start with 0 but can end with x)

Thank you for reading this article carefully. I hope the article "collecting and sorting out the regular expressions commonly used in ASP.NET" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report