Currently the regex only supports single digit interface numbers, for example if you have opt10 or even opt22, the logic will not clean up the interface name correctly, as it does not match the regex expression. Adding the + to look for one or more occurrences of a digit fixes the issue.
Currently the regex only supports single digit interface numbers, for example if you have opt10 or even opt22, the logic will not clean up the interface name correctly, as it does not match the regex expression. Adding the + to look for one or more occurrences of a digit fixes the issue.
Before: Interface DMZ_(opt11) After: Interface modem