RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find MAC address matcher
Expression
^([\da-fA-f]{2}[:-]){5}[\da-fA-f]{2}$
Description
Matches mixed case, colon or hypen hexadecimal notation. Discards string too short or long, or with invalid characters. Needs extended grep.
Matches
98-CE-d0-a2-0a-68 | 98:cE:d0:a2:0a:68
Non-Matches
98-cE-d0-a2-0a | 98-cE-d0-a2-0a-68-f0
Author Rating: Not yet rated. manolo dantonio
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials