title: Check for a pattern (that has double values) to match. Regex
body: <p>I have two strings:  </p>
  
  <ol>
  <li>First string should match this pattern: "anyDoubleValue anyDoubleValue anyDoubleValue". Please note these double values are separated by white spaces. What I mean by anyDoubleValue is: any integer or decimal value. </li>
  <li>Second string should match this pattern: "aSet aSet aSet". The set "aSet" should only have -1 or 0 or 1. Also note that these sets are separated by white spaces. </li>
  </ol>
  
  <p>I have tried the following, but they doesn't serve the purpose:</p>
  
  <pre><code>if(aString.matches("[\\d\\s\\d\\s\\d]"){//do foo}
  if(anotherString.matches("[0-1\\s0-1\\s0-1]")){// do bar} 
  </code></pre>