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
Expression
^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$
Description
This regular expression will validate against a valid MAC address. The 6 bytes are hexadecimal and separated by semi colon or dash caracters.
Matches
01:23:45:67:89:AB
Non-Matches
01:23:45:67:89:X9
Author Rating: The rating for this expression. Jeff Hervouet
   Displaying page 1 of 1 pages; Items 1 to 1

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