src/main/java/com/zandero/utils/StringUtils.java
public static List<String> getWords(String text) {

		List<String> output = new ArrayList<>();
		if (isNullOrEmptyTrimmed(text)) {
			return output;
		}

		Pattern p = Pattern.compile("\\b\\p{L}+\\b");

		Matcher m = p.matcher(text);
		while (m.find()) {
			output.add(m.group());
		}

		return output;
	}
public static List<String> getWords(String text) {

		List<String> output = new ArrayList<>();
		if (isNullOrEmptyTrimmed(text)) {
			return output;
		}

		Pattern p = Pattern.compile("\\b\\p{L}+\\b");

		Matcher m = p.matcher(text);
		while (m.find()) {
			output.add(m.group());
		}

		return output;
	}
public static List < String > getWords ( String text ) { List < String > output = new ArrayList <> ( ) ; if ( isNullOrEmptyTrimmed ( text ) ) { return output ; } Pattern p = Pattern . compile ( "\\b\\p{L}+\\b" ) ; Matcher m = p . matcher ( text ) ; while ( m . find ( ) ) { output . add ( m . group ( ) ) ; } return output ; }
Extracts words from text removing non alpha characters

@param text to extract words from
@return list of found words or empty list if none found
Extracts words from text removing non alpha characters