1.用戶名: /^[a-z0-9_-]{3,16}$/
2.密碼: /^[a-z0-9_-]{6,18}$/
3.十六進制:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/
4.電子郵箱: /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/
/^[a-z\d]+(\.[a-z\d]+)*@([\da-z](-[\da-z])?)+(\.{1,2}[a-z]+)+$/
5.URL:/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/
6.IP地址: /((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)/
/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/
7.HTML標籤: /^<([a-z]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)$/
8.刪除代碼//註釋:(?<!http:|\S)//.*$
9.Unicode編碼中的漢字範圍:/^[\u2E80-\u9FFF]+$/
正則表達式
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
w3a45y6trr etrd
rejesaw280
2022-06-18 12:53:13
Skincell Advanced Review - Have you read the ingredients, benefits and side effects?
pjhjakhfj
2022-06-17 14:40:48
GOODMAN增大丸三大效果
LouisRodgers5773
2022-06-17 11:07:57
光年动画电影简介:为什么在阿联酋被禁?
dimyatiel84
2022-06-17 04:56:34
Logging While Drilling Market Research Report and Forecast to 2030
deepak.s.msg
2022-06-15 20:58:58
MetaboFix (2022 Update) Ingredients Benefits Side Effects Price?
gnjdjgga
2022-06-15 13:22:56
VIDEA Teljes film Magyar
firdauskomarove
2022-06-15 13:00:49
壯陽藥誤區你是否有正確使用壯陽藥?
LouisRodgers5773
2022-06-14 11:46:37
Rental Outdoor LED Display Market Growth, Trends And Forecast 2030
chhidami.a.msg
2022-06-13 19:20:27
哪些壞習慣會傷害腸胃健康
LouisRodgers5773
2022-06-10 12:13:01
加強營養的誤區有哪些
LouisRodgers5773
2022-06-10 11:34:59
Casino Management System Market Growth, Trend, Drivers, Challenges, Key Companies by 2027
pradipthakre06
2022-06-09 20:45:58
Huawei H35-660_V2.0 Practice Exam - Shortcut to Success in Huawei Exam
stevenpal258
2022-06-08 17:44:56
肝臟功能不好的人手腳有哪些症狀
LouisRodgers5773
2022-06-08 15:22:59
Fuel Cell for Data Centers Market Popularity Across the Globe by 2030
chhidami.a.msg
2022-06-07 21:53:11