Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^((?:[0-9]{1,3}\.){3}[0-9]{1,3})\n((?:.*\s)*)(?=\n)
"

Description

Match an IPv4 address and its description delimited by a 'newline' paragraph

Submitted by edoz90 - 8 years ago