code: private static String getRegEx(int position, String... options) {
  
          String value = "" + position;
          for (int i = 0; i < options.length; i++) {
              value += "," + options[i];
          }
          return "{" + value + "}";
      }
docs: Returns a regular expression for replacement.<p>
  
  @param position the parameter number
  @param options the optional options
  
  @return the regular expression for replacement