Community Patterns

Community Library Entry

1

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

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

Description

Matches localhost ip range with optional port capture: 127.X.X.X or 127.X.X.X:PORT

ToDo: check valid ip address.

Submitted by Rodrigo M. A.