Regular Expressions 101

Community Patterns

Can't figure out how to split this

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