Created
April 26, 2012 00:52
-
-
Save mattbertolini/2494893 to your computer and use it in GitHub Desktop.
A regular expression pattern for a MAC (MAC-48/EUI-48) address.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static final String EUI_48_PATTERN = "^(?i)(?:[0-9a-f]{2}[-:]?){5}[0-9a-f]{2}|(?:[0-9a-f]{4}\\.?){2}[0-9a-f]{4}$"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment