white feather 8 Light Poster
String test = "for (int i = 55; i < 60; i++)"; 
		  String line = "";
		  String replace = " Tester." + "n" + Tester.counter + ";";
		  Pattern p = Pattern.compile(reg);
		  Matcher m = p.matcher(test);
		  if (m.find()) {
			 String s = "public static double n" + counter + " =" + m.group();
			 test = test.replace(m.group() , (replace));
		  }

im wondering if there was a way to have the regx replace 55 with Tester.n10 and 60 with Tester.n11

Thanks in advance