title: Sequence repeat validation using Regular expression in javascript
body: <p>Iam pretty new to regular expressions .I would like to prevent the user from entering in </p>
  
  <p>String data using javascript function with  the following condition . </p>
  
  <p><strong>Same sequence of characters cannot be repeated two or more times</strong></p>
  
  <pre><code>  aabhi - is allowed 
   aabbcc -  is allowed
  
   dayday - not allowed
   abab - not allowed
   ababab - not allowed 
   aaaa - not allowed 
  </code></pre>
  
  <p>this applies to numbers too .Can someone help me with this ? Thanks in advance </p>