Methods Summary |
---|
public final RegexpMatcher | getImplementation()
return getRegexpImplementation();
|
public abstract Regexp | getRegexpImplementation()
|
public void | testReplaceAllSubstitution()
Regexp reg = (Regexp) getReg();
reg.setPattern(pattern);
assertTrue(reg.matches(test));
assertEquals("abedcfg-abedcfg", reg.substitute(test, "ab\\2d\\1f",
Regexp.REPLACE_ALL));
|
public void | testReplaceFirstSubstitution()
Regexp reg = (Regexp) getReg();
reg.setPattern(pattern);
assertTrue(reg.matches(test));
assertEquals("abedcfg-abcdefg", reg.substitute(test, "ab\\2d\\1f",
Regexp.REPLACE_FIRST));
|
public void | testSubstitution()
Regexp reg = (Regexp) getReg();
reg.setPattern(pattern);
assertTrue(reg.matches(test));
assertEquals("abedcfg-abcdefg", reg.substitute(test, "ab\\2d\\1f",
Regexp.MATCH_DEFAULT));
|