title: Check string contains whitespace along with some other char sequence using regex in java
body: <p>am using regex expression to check if a string contains white space.
  my regex is : <code>^\\s+$</code></p>
  
  <p>for example if my string is <code>my name</code> then regex matches should return true.
  but it is returning true only if my string contains only spaces no other character.</p>
  
  <p>How to check if a string contains a whitespace or tab or carriage return characters in between/start/end of some string.</p>