Regular Expressions 101

Sponsors

Library entries

0
python

DOI matcher

Matches any valid DOI
Submitted by jpowell - 8 years ago
0
python

test

no description available
Submitted by anonymous - 8 years ago
0
python

1

no description available
Submitted by anonymous - 8 years ago
0
python

get youtube vid ID

match #2
Submitted by parzivail - 8 years ago
0
python

Almost working sites regex

no description available
Submitted by anonymous - 8 years ago
0
python

Negative lookbehind

no description available
Submitted by anonymous - 8 years ago
0
python

test

test
Submitted by boag - 8 years ago
0
python

UAE Phone Numbers

no description available
Submitted by Sebastian - 8 years ago
0
python

ipv4

no description available
Submitted by anonymous - 7 years ago
0
python

apache log analysis

no description available
Submitted by anonymous - 7 years ago
0
python

teste

tes
Submitted by tes - 7 years ago

IPv6 Regex Match Removal

Vote

0

Regular Expression
python

"
(?:^|(?<=\s))(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((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])|([0-9a-fA-F]{1,4}:){1,4}:((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]))(?=\s|$)
"
gm

Description

Loading markdown...
Submitted by vks - 7 years ago