Regular Expressions 101

Spon⁠sors

Community Library

Community Library Entry

0

Regular ExpressionOpen Workspace

r'''
\b[\(|\[]?(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]) \. (25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]) \. (25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]) \. (25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])[\]|\)]?\b
'''
x

Description
Created·2019-08-28 15:27
Type·Match
Flavor·Python

Search and Match an IP address in a string that may have either () or [] as boundaries.

Submitted by Anonymous
Open Workspace