Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
\b(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9]))|\:(\d*)\b
/
g

Description

<http>1.0.170.50:80</http> <http>1.1.189.58:8080</http> <http>1.1.220.100:8080</http> <http>1.2.252.65:8080</http> <http>1.20.166.142:8080</http> <http>1.32.59.217:47045</http> <http>1.179.136.98:8080</http> <http>1.179.144.41:8080</http> <http>1.179.148.9:36476</http> <http>1.186.85.38:1111</http> <http>3.20.236.208:49205</http> <http>3.215.177.148:49205</http> <http>5.16.0.97:1256</http> <http>5.16.0.174:8080</http> <http>5.16.0.180:8080</http>

Submitted by anonymous - 2 years ago