Regular Expressions 101

Sponsors

Library entries

1
python

gg

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

Don't know how to match this.

no description available
Submitted by Nick - 7 years ago
1
python

Simple RegEx for SQL Field transformation

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

Regex json

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

handin5

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

ip

ip search
Submitted by WFT - 7 years ago
2
python

Franklin Regex

Testing Franklin related regex matching cases.
Submitted by Arthur - 7 years ago
1
python

django-ckeditor has embed

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