Community Patterns

Community Library Entry

-1

Regular Expression
Created·2015-10-20 13:33
Flavor·Python

r"
^127\.\d{1,3}\.\d{1,3}\.\d{1,3}(\:\d+)?$
"
mg
Open regex in editor

Description

Matches all ips that points to localhost like, optionally capturing port number: 127.X.X.X and 127.X.X.X:<port>

Submitted by Rodrigo M. A.