i
Hate
Regex
Library
Cheatsheet
Community
Open playground
match ethernet mac address
Regex title
Edit anything to remix
Remix in playground
JavaScript
Expression
/
Regular expression
^
[a-fA-F0-9]
{2}
(
:
[a-fA-F0-9]
{2}
)
{5}
$
^[a-fA-F0-9]{2}(:[a-fA-F0-9]{2}){5}$
/
gm
g
i
m
s
u
y
flags
Test bench
Sample text
1 match
01:02:03:04:ab:cd
definitely:not:a:mac 01-02-03-04-ab-cd
01:02:03:04:ab:cd definitely:not:a:mac 01-02-03-04-ab-cd
Structure
Railroad diagram
Interactive
SVG
PNG
Copy
Embed
Live
Strings that match
01:02:03:04:ab:cd
Strings that don’t match
definitely:not:a:mac
01-02-03-04-ab-cd
Related patterns
latitude and longitude
match latitude-longitude value
bitcoin address
match bitcoint addresses