@Test public void replaceLast() throws Exception { Assertions.assertThat("2017-02-14T13:54:04+0900") .isEqualTo(Strings.replaceLast("2017-02-14T13:54:04+09:00", ":", "")); }
public static String replaceLast(String text, String regex, String replacement) { return text.replaceFirst("(?s)(.*)" + regex, "$1" + replacement); }
Strings { public static String replaceLast(String text, String regex, String replacement) { return text.replaceFirst("(?s)(.*)" + regex, "$1" + replacement); } }
Strings { public static String replaceLast(String text, String regex, String replacement) { return text.replaceFirst("(?s)(.*)" + regex, "$1" + replacement); } private  Strings(); }
Strings { public static String replaceLast(String text, String regex, String replacement) { return text.replaceFirst("(?s)(.*)" + regex, "$1" + replacement); } private  Strings(); static String replaceLast(String text, String regex, String replacement); static SpannableStringBuilder colorizeBackground(@NonNull String text, @NonNull String matchText, @ColorInt int color, boolean ignoreCase); }
Strings { public static String replaceLast(String text, String regex, String replacement) { return text.replaceFirst("(?s)(.*)" + regex, "$1" + replacement); } private  Strings(); static String replaceLast(String text, String regex, String replacement); static SpannableStringBuilder colorizeBackground(@NonNull String text, @NonNull String matchText, @ColorInt int color, boolean ignoreCase); static String EMPTY; static String NEW_LINE; }