public static boolean isNodeMatch(final String patternNode, final String nodeName) {
    if (patternNode.equals(ONE_LEVEL_PATH_WILDCARD)
        || patternNode.equals(MULTI_LEVEL_PATH_WILDCARD)) {
      return true;
    }
    return Pattern.matches(patternNode.replace("*", ".*"), nodeName);
  }
Determine if a node pattern matches a node name.

@param patternNode must be a full path node or a string starts or ends with *, e.g. d, *, **,
    d*, *d*
@param nodeName node to match
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PathPatternUtil.java