private static Integer getNamePostfix(final String name) {
        Matcher matcher = NET_CARD_PATTERN.matcher(name);
        if (matcher.find()) {
            return Integer.parseInt(matcher.group());
        }
        return -1;
    }
Get the last number.

@param name network interface name
@return the name postfix
shenyu-common/src/main/java/org/apache/shenyu/common/utils/IpUtils.java