Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-02-19 10:48
Flavor·Python

r"
((?:[\da-fA-F]{2}[\s:.-]?){6})
"
gm
Open regex in editor

Description

Captures MAC addressess in any format: aa bb cc dd ee ff aa-bb-cc-dd-ee-ff aa:bb:cc:dd:ee:ff aabb.ccdd.eeff aabbccddeeff

Submitted by Gilian