Python Create Regex From Variable Resistor