Here you can find the source of sanitize(String value)
Parameter | Description |
---|---|
value | a parameter |
public static String sanitize(String value)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w .j ava 2s . com * Remove non-alphabetic characters from a string * @param value * @return String */ public static String sanitize(String value) { return value.toLowerCase().replaceAll("[^a-zA-Z]", ""); } }