in reply to Re: Insert colons into a MAC address
in thread Insert colons into a MAC address
Without nasty look-aheadses:
>perl -wMstrict -le "my $ma = '525400eb8b36'; $ma =~ s/..\K\B/:/g; print qq{'$ma'}; " '52:54:00:eb:8b:36'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Insert colons into a MAC address
by GotToBTru (Prior) on Jan 13, 2012 at 21:23 UTC | |
by AnomalousMonk (Archbishop) on Jan 14, 2012 at 08:57 UTC |