Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(lease\s(?P<ip>[0-9\.]+)\s{.+})
"
ms

Description

I need to group each "lease" on its own and I must be missing something :(

Submitted by cereal - 10 years ago