Regular Expressions 101

Sponsors

Library entries

0
javascript

js获取url上的参数

/(+)=(+)/gm
Submitted by anonymous - a day ago
1
java

phone number middle number parsing

middle number parsing regex
Submitted by anonymous - 3 days ago
0
java

Verify email

Regex for email
Submitted by anonymous - 5 days ago
1
javascript

中文匹配

本示例启用了多行匹配 m
Submitted by yang - 5 days ago
0
javascript

cuts amazon url

with a url of aws cuts the url
Submitted by d3w3r - 10 days ago
0
python

foengz1

htmltag
Submitted by Foengz - 10 days ago
0
javascript

regex text inside html tag

regex
Submitted by anonymous - 11 days ago
0
javascript

NPM Module ID

Match import
Submitted by anonymous - 12 days ago

IPv6 CIDR Validator

Vote

1

Regular Expression
javascript

/
(?:(?:(?:[A-F0-9]{1,4}:){6}|(?=(?:[A-F0-9]{0,4}:){0,6}(?:[0-9]{1,3}\.){3}[0-9]{1,3}(?![:.\w]))(([0-9A-F]{1,4}:){0,5}|:)((:[0-9A-F]{1,4}){1,5}:|:)|::(?:[A-F0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}|(?=(?:[A-F0-9]{0,4}:){0,7}[A-F0-9]{0,4}(?![:.\w]))(([0-9A-F]{1,4}:){1,7}|:)((:[0-9A-F]{1,4}){1,7}|:)|(?:[A-F0-9]{1,4}:){7}:|:(:[A-F0-9]{1,4}){7})(?![:.\w])\/(?:12[0-8]|1[01][0-9]|[1-9]?[0-9])
/
gmi

Description

Loading markdown...
Submitted by anonymous - 2 months ago