Regex · MAC address · Free
MAC address regex.
Matches a MAC (hardware) address with colon or dash separators. Copy the pattern below, see what it matches, then tweak it for your exact case with the free generator.
The pattern
/\b(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2}\b/g
✓ Matches
01:23:45:67:89:abAA-BB-CC-DD-EE-FF✗ Doesn't match
01:23:45GG:HH:II:JJ:KK:LL0123456789abNeed a variation? Generate one
Other common patterns
Parsing and pattern-matching are everywhere in AI systems. MindloomHQ teaches you to build them for real — agents, RAG, pipelines — with projects and certificates.
Explore MindloomHQ →