Regular Expressions 101

Community Library Entry

0

Regular Expression
Python

r"
\b(?:(?:[a-f\d]{2})(?:[:-]|)){6}\b
"
ig

Description

Simple MAC address match/parsing expression

Submitted by cwichel - 2 years ago