@Test public void testNormalizeCitation() { assertEquals("Hallo", NormalizeUtils.normalizeCitation(" Hallo ")); assertEquals( "Benois, R. 1964. Contribution a la connaissance des Halictus malgaches (Hym. Apidae). Revue Française d'Entomologie 31: 45 60.", NormalizeUtils.normalizeCitation( "Benois, R. 1964. Contribution a la connaissance des Halictus malgaches (Hym. Apidae). Revue Française d'Entomologie 31: 45 60. ")); Pattern PRO_PARTE_SPLITTER = Pattern.compile("\\|+"); String[] ids = PRO_PARTE_SPLITTER.split("123|456|783942|1|"); for (String id : ids) { System.out.println(id); } }
public static String normalizeCitation(String citation) { return trimToNull( NORM_CITATION_WHITE.matcher(NORM_CITATION_PUNCT.matcher(citation).replaceAll(". ")).replaceAll(" ")); }
NormalizeUtils { public static String normalizeCitation(String citation) { return trimToNull( NORM_CITATION_WHITE.matcher(NORM_CITATION_PUNCT.matcher(citation).replaceAll(". ")).replaceAll(" ")); } }
NormalizeUtils { public static String normalizeCitation(String citation) { return trimToNull( NORM_CITATION_WHITE.matcher(NORM_CITATION_PUNCT.matcher(citation).replaceAll(". ")).replaceAll(" ")); }  }
NormalizeUtils { public static String normalizeCitation(String citation) { return trimToNull( NORM_CITATION_WHITE.matcher(NORM_CITATION_PUNCT.matcher(citation).replaceAll(". ")).replaceAll(" ")); }  static String normalizeCitation(String citation); static String normalizeTerm(String term); static String replaceUnicodeEntities(String x); static String trimToNull(String x); }
NormalizeUtils { public static String normalizeCitation(String citation) { return trimToNull( NORM_CITATION_WHITE.matcher(NORM_CITATION_PUNCT.matcher(citation).replaceAll(". ")).replaceAll(" ")); }  static String normalizeCitation(String citation); static String normalizeTerm(String term); static String replaceUnicodeEntities(String x); static String trimToNull(String x);  }