@Test public void testFormat() { String ipl = "RE_180-2018-01"; assertEquals("RE 180-2018-01", service.format(ipl)); }
@Override public String format(String hit) { Matcher matcher = NOT_ALLOWED_CHARS_PATTERN.matcher(hit); return matcher.replaceAll(REPLACEMENT).trim(); }
IPLRegexValidatorService extends BasicAbstractRegexValidatorService { @Override public String format(String hit) { Matcher matcher = NOT_ALLOWED_CHARS_PATTERN.matcher(hit); return matcher.replaceAll(REPLACEMENT).trim(); } }
IPLRegexValidatorService extends BasicAbstractRegexValidatorService { @Override public String format(String hit) { Matcher matcher = NOT_ALLOWED_CHARS_PATTERN.matcher(hit); return matcher.replaceAll(REPLACEMENT).trim(); }  }
IPLRegexValidatorService extends BasicAbstractRegexValidatorService { @Override public String format(String hit) { Matcher matcher = NOT_ALLOWED_CHARS_PATTERN.matcher(hit); return matcher.replaceAll(REPLACEMENT).trim(); }  @Override boolean validate(String hit); @Override String format(String hit); @Override List<String> getRegexNames(); @Override void init(File confDir); }
IPLRegexValidatorService extends BasicAbstractRegexValidatorService { @Override public String format(String hit) { Matcher matcher = NOT_ALLOWED_CHARS_PATTERN.matcher(hit); return matcher.replaceAll(REPLACEMENT).trim(); }  @Override boolean validate(String hit); @Override String format(String hit); @Override List<String> getRegexNames(); @Override void init(File confDir);  }