piighost/mac-address · pattern
MAC address
MAC address in its two written conventions: six hex octets separated by colons or hyphens, and the Cisco dotted form of three groups of four. The separator is not back-referenced, so a string that mixes colons and hyphens also matches, which Presidio forbids with a backreference. Six hex pairs is a distinctive enough shape that noise stays low in prose, though a colon-delimited hex digest matches too. No collision with any existing pattern.
Label: MAC_ADDRESS
Pattern \b(?:[0-9A-Fa-f]{2}[:-]){5}[0-9A-Fa-f]{2}\b|\b[0-9A-Fa-f]{4}(?:\.[0-9A-Fa-f]{4}){2}\b
Must be caught MAC 00:1B:44:11:3A:B7 sur le port 3. → 00:1B:44:11:3A:B7Le switch annonce 0011.2233.4455 dans sa table. → 0011.2233.4455
Must be left alone 00:1B:44:11:3AGG:1B:44:11:3A:B7
Tags: international, identity, network
Download the detector as TOML
Used by
piighost/network : Machine and network identifiers: IPv4, IPv6 and MAC addresses.
Related patterns
piighost/anthropic-api-key : Anthropic API key: the sk-ant-api user prefix and the sk-ant-admin admin prefix, the two version digits left open so a…
piighost/ar-dni : Argentine national identity document number, the DNI: eight digits, written solid or with a period after the second…
piighost/at-svnr : Austrian social security number, the Sozialversicherungsnummer: ten digits, a three digit serial and one check digit,…
piighost/au-driving-licence : Australian driver licence number.
piighost/au-passport : Australian passport number, eight or nine characters, per the Purview Australia passport definition: one letter from…
piighost/aws-access-key : AWS access key identifier: the AKIA prefix of a long-term user key, then sixteen uppercase characters.
← piighost/logs · All patterns in the catalog · piighost/mailgun-api-key →