title: Find Text Between words in Java
body: <p>I want to get all text in between 2 words(1st word is fixed[One] but 2nd is either of 2 words[Two]Or[Three] ).</p>
  
  <p><strong>Note</strong> :: There may be or may not be space between found text and 2nd word. 
  For example:</p>
  
  <pre><code>One     i am  
  here
  Two
  i am fine 
  One     i am 
  here 
   Two
  i am fine 
  One     i am  
  here
  Three
  i am fine 
  One     i am  
  here 
   Two
  i am fine
  </code></pre>
  
  <p>What i found is</p>
  
  <pre><code>Pattern p = Pattern.compile("(?&lt;=\\bOne\\b)(.*?)(?=\\bTwo\\b)");
  </code></pre>
  
  <p>But this is not correct as It takes complete word.</p>
  
  <p>"Two" is valid.<br>
  "fineTwo" is not valid.</p>