Flexible mac address regex

Some of my templates have different spacing around the equals sign, and others might have this problem as well.