I want regular expression for age field in javascript
<pre><code> var text6 = document.getElementById("text6").value;
    var regularExpression1 = /^[1-9]?[0-9]{1}$|^100$/;

  if (!text6.match(regularExpression1)){
          alert("Please enter Valid Age");
          return false;
      }
</code></pre>

<p>This code is not working properly</p>
