title: How can i check multiple lines text in java regex?
body: <p>I want to check multiple lines of text in Java regular expression. But it is always showing false result. Can anyone explain me why?</p>
  
  <p>For example:</p>
  
  <pre><code>11  12
  11  12
  11  12
  </code></pre>
  
  <p>For testing those lines, I am using <code>11  12\r?\n+</code>. It is working fine in rubular regular expression checker but failing in <a href="http://www.regexplanet.com/advanced/java/index.html" rel="nofollow">http://www.regexplanet.com/advanced/java/index.html</a>. Another alternatives I tried was <code>(11  12.\r?\n){3,7}</code>, which is working fine in rubular regex check but failed in regexplanet Java. Can anyone tell me how can check this type of regular expression having repeating pattern?</p>