Ignoring virtual nics when interface is detect

How do such interfaces look like? In any case you must not use capturing group unless you have something to capture. Generally it would be preferred to delete this variable completely since there is such a thing as patterns negative look-ahead since there already is a pattern. But here I suggest to omit interfaces by lowing their precedence like I did with `lo` interface, *not* lower their precedence by pretending that there is no match (your code *did not* exclude these interfaces completely, it just has set precedence to zero, which is higher then loopback interface precedence).