title: Javascript method to check for digits within a string (validation of input data)
body: <p>Im trying to implement a validation for an input field in IBM BPM. 
  Im not really familiar with java script but I try to get method that returns
  ture if a string contains any numbers.</p>
  
  <p>awdadw = valid<br>
       awdawd<strong>2</strong>d = invalid</p>
  
  <p>I tried this method:</p>
  
  <pre><code>function hasNumbers(t)
  {
      var pattern=new RegExp("^[A-Za-z]+$"); 
      return pattern.test(t); // true if string. Returns false for numbers
  }
  </code></pre>
  
  <p>When I try this function, it says that method / variable RegExp is unknown. Since it is rather basci stuff I hope to get some sources where this topic is explained.</p>