Regular Expressions 101

Community Patterns

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