Regular Expressions 101

Sponsors

Library entries

1
javascript

Alpha + Underscore

no description available
Submitted by Sergio de la Garza - 7 years ago
1
python

Currency Detector Python

Currency Detector for Python
Submitted by Joao Graca - 7 years ago
1
pcre

Project

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

dd-mm-yyyy

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

parse array to object p1

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

regex to match absolute urls

no description available
Submitted by maq - 7 years ago
1
pcre

recognize php

recognize php code
Submitted by Chris Ottersen - 7 years ago
1
pcre

REGEX for detecting AU Parcel locker

meh
Submitted by tsing to the motherfucking tao - 7 years ago
1
javascript

magnet

Extract magnet links
Submitted by Peng - 7 years ago
1
pcre

load_runner_transaction_end

no description available
Submitted by anonymous - 7 years ago

IP regex

Vote

1

Regular Expression
pcre

/
^(?:(?:(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:|(?:[\da-f]{1,4}:){1,6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,5}(?::[\da-f]{1,4}){1,2}|(?:[\da-f]{1,4}:){1,4}(?::[\da-f]{1,4}){1,3}|(?:[\da-f]{1,4}:){1,3}(?::[\da-f]{1,4}){1,4}|(?:[\da-f]{1,4}:){1,2}(?::[\da-f]{1,4}){1,5}|[\da-f]{1,4}:(?:(?::[\da-f]{1,4}){1,6})|:(?:(?::[\da-f]{1,4}){1,7}|:)|fe80:(?::[\da-f]{0,4}){0,4}%[\da-zA-Z]{1,}|::(?:ffff(?::0{1,4})?:)?(?:(?:25[0-5]|(?:2[0-4]|1?[\d])?[\d])\.){7}(?:25[0-5]|(?:2[0-4]|1?[\d])?[\d])|(?:[\da-f]{1,4}:){1,4}:(?:(?:25[0-5]|(?:2[0-4]|1?[\d])?[\d])\.){7}(?:25[0-5]|(?:2[0-4]|1?[\d])?[\d]))-(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:|(?:[\da-f]{1,4}:){1,6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,5}(?::[\da-f]{1,4}){1,2}|(?:[\da-f]{1,4}:){1,4}(?::[\da-f]{1,4}){1,3}|(?:[\da-f]{1,4}:){1,3}(?::[\da-f]{1,4}){1,4}|(?:[\da-f]{1,4}:){1,2}(?::[\da-f]{1,4}){1,5}|[\da-f]{1,4}:(?:(?::[\da-f]{1,4}){1,6})|:(?:(?::[\da-f]{1,4}){1,7}|:)|fe80:(?::[\da-f]{0,4}){0,4}%[\da-zA-Z]{1,}|::(?:ffff(?::0{1,4})?:)?(?:(?:25[0-5]|(?:2[0-4]|1?[\d])?[\d])\.){7}(?:25[0-5]|(?:2[0-4]|1?[\d])?[\d])|(?:[\da-f]{1,4}:){1,4}:(?:(?:25[0-5]|(?:2[0-4]|1?[\d])?[\d])\.){7}(?:25[0-5]|(?:2[0-4]|1?[\d])?[\d])))|(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:|(?:[\da-f]{1,4}:){1,6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,5}(?::[\da-f]{1,4}){1,2}|(?:[\da-f]{1,4}:){1,4}(?::[\da-f]{1,4}){1,3}|(?:[\da-f]{1,4}:){1,3}(?::[\da-f]{1,4}){1,4}|(?:[\da-f]{1,4}:){1,2}(?::[\da-f]{1,4}){1,5}|[\da-f]{1,4}:(?:(?::[\da-f]{1,4}){1,6})|:(?:(?::[\da-f]{1,4}){1,7}|:)|fe80:(?::[\da-f]{0,4}){0,4}%[\da-zA-Z]{1,}|::(?:ffff(?::0{1,4})?:)?(?:(?:25[0-5]|(?:2[0-4]|1?[\d])?[\d])\.){7}(?:25[0-5]|(?:2[0-4]|1?[\d])?[\d])|(?:[\da-f]{1,4}:){1,4}:(?:(?:25[0-5]|(?:2[0-4]|1?[\d])?[\d])\.){7}(?:25[0-5]|(?:2[0-4]|1?[\d])?[\d])))|(?:(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)-(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)|(?:(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d))))(?:\/(?:(?:(?:(?:255\.){3}(?:255|254|252|248|240|224|192|128|0))|(?:(?:255\.){2}(?:255|254|252|248|240|224|192|128|0)\.0)|(?:(?:255\.)(?:255|254|252|248|240|224|192|128|0)(?:\.0){2})|(?:(?:255|254|252|248|240|224|192|128|0)(?:\.0){3}))|(?:(?:3[0-2])|(?:[1-2]\d)|[1-9])))?$
/
gi

Description

Loading markdown...
Submitted by anonymous - 4 years ago