Regular Expressions 101

Sponsors

Library entries

0
python

Nashvile chords

Nashvile chords
Submitted by Marcos - 2 months ago
0
python

Python Regex Tutorial

Python Regex Tutorial CS384
Submitted by Mayank Agarwal - 2 months ago
0
python

File Parser

File parser
Submitted by anonymous - 2 months ago
0
python

Words that start with...

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

almost any similar word

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

Find email address in a string.

no description available
Submitted by anonymous - 8 years ago
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

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