Regular Expressions 101

Sponsors

Library entries

0
javascript

quizlet link extract

fg
Submitted by anonymous - 20 days ago
0
javascript

quizlet data extract

.
Submitted by anonymous - 21 days ago
0
javascript

Command Usage

a
Submitted by 12944qwerty - a month ago
0
javascript

PACCAR VIN trimmer

trin vin from a scanned qr
Submitted by anonymous - a month ago
1
golang

1

11
Submitted by anonymous - a month ago
0
javascript

Simple Macro Extraction from Ad Tag

Submitted by AM - a month ago

IP (v4 and v6) check

Vote

0

Regular Expression
javascript

/
(^([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}$|^([0-9a-fA-F]{1,4}:){6}:(?:[0-9a-fA-F]{1,4}){0,1}$|^([0-9a-fA-F]{1,4}:){5}(?:(:[0-9a-fA-F]{1,4}){1,2}|:)$|^([0-9a-fA-F]{1,4}:){4}(?:(:[0-9a-fA-F]{1,4}){1,3}|:)$|^([0-9a-fA-F]{1,4}:){3}(?:(:[0-9a-fA-F]{1,4}){1,4}|:)$|^([0-9a-fA-F]{1,4}:){2}(?:(:[0-9a-fA-F]{1,4}){1,5}|:)$|^[0-9a-fA-F]{1,4}:(?:(:[0-9a-fA-F]{1,4}){1,6}|:)$|^:((:[0-9a-fA-F]{1,4}){1,7}|:)$)|(^(?:(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])$)
/
ig

Description

Loading markdown...
Submitted by Emanuele Benedetti - 3 months ago