Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Regular Expression for MAC Address

by MeowChow (Vicar)
on May 26, 2001 at 00:19 UTC ( [id://83413]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    /^([0-9a-f]{2}([:-]|$)){6}$/i
    
  2. or download this
    @nums = split /[:-]/, $mac;
    
  3. or download this
    /((?:[0-9a-f]{2}[:-]){5}[0-9a-f]{2})/i
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://83413]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-03-28 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found