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
This should work:
/^\s*\S.*$/
but a regular expression might not be the best solution depending on what else you have in mind.