Regular Expressions 101

Sponsors

Library entries

1
javascript

中文匹配

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

cuts amazon url

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

foengz1

htmltag
Submitted by Foengz - 7 days ago
0
javascript

regex text inside html tag

regex
Submitted by anonymous - 9 days ago
0
javascript

NPM Module ID

Match import
Submitted by anonymous - 9 days ago
0
javascript

Parse Rx DataMatrix

Parse Rx DataMatrix
Submitted by hoangitk - 12 days ago
0
javascript

CMake problem matcher

CMake problem matcher
Submitted by anonymous - 12 days ago
0
python

Project

Project
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