Regular Expressions 101

Community Patterns

1...34567...901

Community Library Entry

0

Regular Expression
Python

r"
\s*(?P<IP>(\d{1,3}\.?){4})\s+(?P<MAC>\S+)\s+(?P<TYPE>\w+)
"
gm

Description

Разбивает на части вывод команды arp -a

Submitted by baldateg - 2 years ago