Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
Python

r"
(?i)^[a-f\d]{2}([.:-]?)([a-f\d]{2}\1){4}[a-f\d]{2}$
"
gm

Description

Match mac address with :, -, ., or no dividers.

Submitted by Brandan Neises - 4 years ago