Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
MAC address
Open Workspace
PCRE (Legacy)
Match
Created 2016-05-11 09:02
1
Regular Expression
/
\b
[
[:xdigit:]
]
{2}
(?:
[^
[:xdigit:]
]
?
[
[:xdigit:]
]
{2}
){5}
\b
/
g
Description
This regular expression matches whatever looks like a MAC addresses.
Submitted by
piwi82