docs: public static String toRegularExpression( String likeExpression ) {
          // Replace all '\x' with 'x' ...
          String result = likeExpression.replaceAll("\\\\(.)", "$1");
          // Escape characters used as metacharacters in regular expressions, including
          // '[', '^', '\', '$', '.', '|', '+', '(', and ')'
          // But leave '?' and '*'
          result = result.replaceAll("([$.|+()\\[\\\\^\\\\\\\\])", "\\\\$1");
          // Replace '%'->'[.]*' and '_'->'[.]
          // (order of these calls is important!)
          result = result.replace("*", ".*").replace("?", ".");
          result = result.replace("%", ".*").replace("_", ".");
          // Replace all wildcards between square bracket literals with digit wildcards ...
          result = result.replace("\\[.*]", "\\[\\d+]");
          return result;
      }