title: Regex pattern to get all lines text between two words
body: <p>I want to create a regex pattern to get stuff between two words.</p>
  <pre><code>Start:
  Apple
  Cat
  Ball
  End:
  </code></pre>
  <p>I want to get the data between Start: and End:</p>
  <p>I was able to find this data using C#:</p>
  <h1>region Get Required Field Data</h1>
  <pre><code>    public static List&lt;string&gt; GetRequiredData(string[] lines, string StartPos, string EndPos)
      {
          List&lt;String&gt; RequiredField = new List&lt;String&gt;();
  
  
          bool hit = false;
  
          foreach (var line in lines)
          {
              if (line == EndPos)
              {
                  hit = false;
              }
  
              else if (hit == true)
              {
                  if (line != &quot;\t&quot;||line==&quot;&quot;)
                  {
                      RequiredField.Add(line);
                     
                  }
              }
  
              else if (line == StartPos)
              {
                  hit = true;
              }
  
  
          }
          return RequiredField;
      }
      #endregion Get Required Field Data
  </code></pre>
  <p>But i think using regex for the same purpose will be cool.
  I tried (?&lt;=Start:)(.*)(?=End:) but it is not working.Plus i also want to remove any line in between with no text.</p>
  <p>I will really appreciate any help.
  Thank You,</p>