Regular Expressions 101

Community Patterns

Split output of $(ip addr) into individual interfaces

0

Regular Expression
Python

r"
\d: (?!<)[^\n]+(?:\n .*)*
"
g

Description

no description available

Submitted by anonymous - 6 years ago