Regular Expressions 101

Sponsors

Library entries

0
pcre

music chords max possible

no description available
Submitted by anonymous - 5 years ago
0
pcre

cleanup regex

no description available
Submitted by anonymous - 5 years ago
0
pcre

ip_address

find an ip address in a string
Submitted by anonymous - 5 years ago
0
pcre

flunetd

no description available
Submitted by anonymous - 5 years ago
0
pcre

PR364777

generic regex for all.
Submitted by anonymous - 5 years ago
0
pcre

regex_1

no description available
Submitted by anonymous - 5 years ago
0
pcre

SpecialsChars ending

no description available
Submitted by anonymous - 5 years ago
0
pcre

parsing ini files

no description available
Submitted by anonymous - 5 years ago
0
pcre

nondigits - digits

no description available
Submitted by anonymous - 5 years ago
0
pcre

Multi group regex

no description available
Submitted by anonymous - 5 years ago

Publicly addressable IP addresses, excluding private ranges.

Vote

0

Regular Expression
pcre

/
^(?!(192\.168\.))^(?!(172\.(1[6-9]|2[0-9]|3[0-1])\.))^((([1-9]|1[1-9]|[2-9][0-9]|1[0-9]{2}|2[0-1][0-9]|22[0-3])\.)((0|1[0-9]{0,2}|[2-9][0-9]|2[0-4][0-9]|25[0-5])\.){2}(1[0-9]{0,2}|[2-9][0-9]|2[0-4][0-9]|25[0-4]))$
/
gm

Description

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