@Test public void normalizeEmail() throws Exception { Assert.assertEquals( "asdf 2nnfdf", normalizer.normalize("asdf asd.fdfa@hasdk23.com.br 2nnfdf")); Assert.assertEquals( "asdf 2nnfdf ", normalizer.normalize("asdf asd.fdfa@hasdk23.com.br" + " 2nnfdf asd.fdfa@hasdk23.com.br")); }
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);  }