title: Java regex check if string contains 1 character (number) > 0
body: <p>Say I have a String as below and I would like to check if at least one character is a numerical value greater than 0 (check for 1 non zero element number). Is there a way to do this without running splitting the String and making a loop etc.? I assume there is a regex solution but I do not know much regex. </p>
  
  <pre><code>String x = "maark ran 0000 to the 23 0 1 3 000 0"
  </code></pre>
  
  <p>^this should pass</p>
  
  <pre><code>String x2 = "jeff ran 0 0 0000 00 0 0 times 00 0"
  </code></pre>
  
  <p>^this should fail </p>
  
  <p>I have tried the following:</p>
  
  <pre><code>String line = fileScanner.nextLine();
  if(!(line.contains("[1-9]+")) 
      &lt;fail case&gt;
  else 
      &lt;pass case&gt; 
  </code></pre>