Quote:
How to identify a valid MAC address?
By checking it has 6 groups of 2 hexadecimal digits (will 'validate' the form of the address, but not that it actually exists).
But, why? What is the need to validate a MAC address?
Quote:
If 000.a83.b1c.08e is a valid MAC address then why is 123.123.123.123 not a valid address?
000.a83.b1c.08e is not a well-formed MAC address.
123.123.123.123 is not a MAC address, it is an IP address.
Quote:
Also does this regex validate all kind of valid MAC address?
This regex does not validate any king of network address, nor MAC nor IP. It validates the hexadecimal representation of a decimal number.