@Test public void normalizeUrl() throws Exception { Assert.assertEquals( "asdf 2nnfdf", normalizer.normalize("asdf http: Assert.assertEquals( "asdf 2nnfdf ", normalizer.normalize("asdf http: "s 2nnfdf http: }
public CharSequence normalize (CharSequence text) { String modified = URL_REGEX.matcher(text).replaceAll(" "); return MAIL_REGEX.matcher(modified).replaceAll(" "); }
UrlCharSequenceNormalizer implements CharSequenceNormalizer { public CharSequence normalize (CharSequence text) { String modified = URL_REGEX.matcher(text).replaceAll(" "); return MAIL_REGEX.matcher(modified).replaceAll(" "); } }
UrlCharSequenceNormalizer implements CharSequenceNormalizer { public CharSequence normalize (CharSequence text) { String modified = URL_REGEX.matcher(text).replaceAll(" "); return MAIL_REGEX.matcher(modified).replaceAll(" "); }  }
UrlCharSequenceNormalizer implements CharSequenceNormalizer { public CharSequence normalize (CharSequence text) { String modified = URL_REGEX.matcher(text).replaceAll(" "); return MAIL_REGEX.matcher(modified).replaceAll(" "); }  static UrlCharSequenceNormalizer getInstance(); CharSequence normalize(CharSequence text); }
UrlCharSequenceNormalizer implements CharSequenceNormalizer { public CharSequence normalize (CharSequence text) { String modified = URL_REGEX.matcher(text).replaceAll(" "); return MAIL_REGEX.matcher(modified).replaceAll(" "); }  static UrlCharSequenceNormalizer getInstance(); CharSequence normalize(CharSequence text);  }