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
JavaScript
Match
Created 2015-07-31 17:12
5
Regular Expression
/
(
(?:
[
a
-
zA
-
Z0
-
9
]
{2}
[
:-
]
){5}
[
a
-
zA
-
Z0
-
9
]
{2}
)
/
Description
a mac address separated by dashes or colons.
Submitted by
Anonymous