|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: One for the regexp fansby davorg (Chancellor) |
| on Aug 04, 2000 at 09:37 UTC ( [id://26156]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Do MAC addresses always have six sections? If so, you could do something like this:
It's still two lines, but the first is just there so I don't have to type '%02x' six times :) Oh, and it's not really a regex solution - sorry! --<http://www.dave.org.uk> European Perl Conference - Sept 22/24 2000, ICA, London <http://www.yapc.org/Europe/>
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||