![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
Re: Re: Re: Verify string as ethernet addressby Koschei (Monk) |
on Jun 01, 2001 at 08:05 UTC ( #84838=note: print w/replies, xml ) | Need Help?? |
Macintoshes tend to display their MAC address as a series of space separated octets.
What you really want to do is to check that the octets are separated by a \W character. That way, you'll get "44:45 53,4f'2g;56" but not "dead beef is cool!".
--
iain. <http://eh.org/~koschei/>
In Section
Cool Uses for Perl
|
|