Normalizing MAC address for database storage?

Fajar A. Nugraha list at
Mon Sep 28 09:38:15 CEST 2015

On Mon, Sep 28, 2015 at 2:23 PM, Kev Pearce < at> wrote:
>> Maybe even a more minimalistic format would be better for MAC address:
>> all lowercase, no separators: aabbccddeeff. A simple regex could
>> discard anything that's not 0123456789abcdef, and then convert to
>> lowercase.
> I'd do this but of course you need tolower first before the regex...

BEFORE regex? Not really. Just add "i".


More information about the Freeradius-Users mailing list