Java String Sanitize sanitize(String text)

Here you can find the source of sanitize(String text)

Description

sanitize

License

Apache License

Declaration

public static String sanitize(String text) 

Method Source Code

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

public class Main {
    public static String sanitize(String text) {
        if (text != null)
            return text.replaceAll("[,|;|\\.|-]", "");
        return "";
    }/*from  w  ww .j a v a  2 s  . c  om*/
}

Related

  1. sanitize(String source)
  2. sanitize(String str)
  3. sanitize(String string)
  4. sanitize(String string, boolean allowWhitespace)
  5. sanitize(String string, String spaceReplace)
  6. sanitize(String text)
  7. sanitize(String value)
  8. sanitizeAppAlias(String appAlias)
  9. sanitizeAttribute(String value)