Merge "Add a regression test for Matcher.replaceFirst."