// standard function adder, auto importer !595 592 public class main { public static void main(String[] args) throws Exception { print "Translator starting" String s = loadMainJava(); String code = loadSnippet("#597"); Matcher matcher = Pattern.compile("\\d+").matcher(s); if (matcher.find()) code = code.replaceAll("port = \\d+", "port = " + matcher.group()); saveMainJava(code); print "Translator done" } }