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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 1

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