@Test public void testReplaceInputs() { String updated = new ThExporter().replaceInputsText(TEST_CONTENT, "input replacement"); Assert.assertTrue(updated.contains("input replacement")); Assert.assertFalse(updated.contains("dafung-down-west.th2")); }
public static String replaceInputsText(String original, String replacementText) { String newContent = original.replaceFirst("(?m)(^input .*\\n)+", replacementText); return newContent; }
ThExporter { public static String replaceInputsText(String original, String replacementText) { String newContent = original.replaceFirst("(?m)(^input .*\\n)+", replacementText); return newContent; } }
ThExporter { public static String replaceInputsText(String original, String replacementText) { String newContent = original.replaceFirst("(?m)(^input .*\\n)+", replacementText); return newContent; }  }
ThExporter { public static String replaceInputsText(String original, String replacementText) { String newContent = original.replaceFirst("(?m)(^input .*\\n)+", replacementText); return newContent; }  static String getContent(Context context, Survey survey, List<String> th2Files); static String updateOriginalContent(
            Survey survey, String originalFileContent, List<String> th2Files); static String replaceCentreline(String original, String replacementText); static String replaceInputsText(String original, String replacementText); static String indent(String text); }
ThExporter { public static String replaceInputsText(String original, String replacementText) { String newContent = original.replaceFirst("(?m)(^input .*\\n)+", replacementText); return newContent; }  static String getContent(Context context, Survey survey, List<String> th2Files); static String updateOriginalContent(
            Survey survey, String originalFileContent, List<String> th2Files); static String replaceCentreline(String original, String replacementText); static String replaceInputsText(String original, String replacementText); static String indent(String text); static final char COMMENT_CHAR; static final String DATE_PATTERN; }