I need a Java regular expression, which checks that the given String is not Empty. However the expression should ingnore if the user has accidentally given whitespace in the
private static final String REGEX_NON_EMPTY = ".*\\S.*";
// any number of whatever character followed by 1 or more non-whitespace chars, followed by any number of whatever character