Java String Normalize normalizeString(String input)

Here you can find the source of normalizeString(String input)

Description

normalize String

License

Apache License

Declaration

public static String normalizeString(String input) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.Normalizer;

public class Main {
    public static String normalizeString(String input) {
        return Normalizer.normalize(input, Normalizer.Form.NFD).replaceAll("\\p{M}", "").replaceAll("\\W+", " ")
                .toLowerCase().trim();//from  w w w  .j a v  a 2  s.com
    }
}

Related

  1. normalizeIndex(String input, String[] indexList)
  2. normalizeMatchup(final String matchup)
  3. normalizePackageNamePart(String name)
  4. normalizeRepositoryName(String input)
  5. normalizeSearchString(String src)
  6. normalizeString(String str)
  7. normalizeString(String token)
  8. normalizeSuffix(String suffix)
  9. normalizeTestAndSplit(String text)