@Test @DisplayName("Alphanumeric conversion") void toAlphaNumeric() { assertNull(StringUtils.toAlphaNumeric(null)); assertEquals("", StringUtils.toAlphaNumeric("")); assertEquals("abc123", StringUtils.toAlphaNumeric("abc123")); assertEquals("MainWebHome", StringUtils.toAlphaNumeric("Main.WebHome")); assertEquals( "TheQuickBrownFoxjumpsoverthelazydog", StringUtils.toAlphaNumeric("The Quick Brown Fox jumps over the lazy dog") ); assertEquals( "DesNoelouunzephyrhaimevetdeglaconswurmiensjedinedexquisrotisdebufaukiralaydagemurctera", StringUtils.toAlphaNumeric("Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis " + "rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !") ); }
public static String toAlphaNumeric(String text) { if (isEmpty(text)) { return text; } return stripAccents(text).replaceAll("[^a-zA-Z0-9]", ""); }
StringUtils extends org.apache.commons.lang3.StringUtils { public static String toAlphaNumeric(String text) { if (isEmpty(text)) { return text; } return stripAccents(text).replaceAll("[^a-zA-Z0-9]", ""); } }
StringUtils extends org.apache.commons.lang3.StringUtils { public static String toAlphaNumeric(String text) { if (isEmpty(text)) { return text; } return stripAccents(text).replaceAll("[^a-zA-Z0-9]", ""); }  }
StringUtils extends org.apache.commons.lang3.StringUtils { public static String toAlphaNumeric(String text) { if (isEmpty(text)) { return text; } return stripAccents(text).replaceAll("[^a-zA-Z0-9]", ""); }  static String doubleChar(final String str, final char c); static String toAlphaNumeric(String text); }
StringUtils extends org.apache.commons.lang3.StringUtils { public static String toAlphaNumeric(String text) { if (isEmpty(text)) { return text; } return stripAccents(text).replaceAll("[^a-zA-Z0-9]", ""); }  static String doubleChar(final String str, final char c); static String toAlphaNumeric(String text);  }