Regular Expressions 101

Sponsors

Library entries

0
javascript

https

https
Submitted by anonymous - 15 hours ago
0
python

meter number

meter number
Submitted by econ - a day ago
0
python

whatsapp meta data

[8/23/18, 2:05:50 PM]
Submitted by Mandar Gite - 2 days ago
0
python

bkengine 单行宏匹配

bkengine 单行宏匹配
Submitted by anonymous - 3 days ago
0
python

取等号两边的数据

取等号两边的数据
Submitted by 小沙盒工作室 - 3 days ago
0
python

Match files' extention

match files' extention
Submitted by anonymous - 3 days ago
0
python

去除首尾空格

去除首尾空格
Submitted by anonymous - 4 days ago
0
python

`git` URL

Match git URL components (including partial URLs).
Submitted by anonymous - 4 days ago
1
javascript

Regex for url

Regex for url
Submitted by anonymous - 5 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